safeword 0.15.5 → 0.15.7

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 (49) hide show
  1. package/dist/{check-TI6D5FLM.js → check-JQMMRAOP.js} +3 -3
  2. package/dist/{chunk-4IXCKHSI.js → chunk-ESL7ZI5O.js} +2 -2
  3. package/dist/{chunk-OPR33S5K.js → chunk-WSFYO2MK.js} +38 -43
  4. package/dist/{chunk-OPR33S5K.js.map → chunk-WSFYO2MK.js.map} +1 -1
  5. package/dist/cli.js +5 -5
  6. package/dist/{diff-3ROXA7D3.js → diff-C3OHG2JB.js} +2 -2
  7. package/dist/{reset-DZ5QUVBK.js → reset-P3WI3BKA.js} +2 -2
  8. package/dist/{setup-LS4T3KNU.js → setup-LEDGIKSR.js} +3 -3
  9. package/dist/{upgrade-CWBPH7AS.js → upgrade-RX5FE5GL.js} +3 -3
  10. package/package.json +1 -4
  11. package/templates/.jscpd.json +5 -0
  12. package/templates/AGENTS.md +1 -1
  13. package/templates/SAFEWORD.md +41 -42
  14. package/templates/commands/audit.md +74 -8
  15. package/templates/commands/bdd.md +6 -7
  16. package/templates/commands/done.md +94 -0
  17. package/templates/cursor/rules/safeword-bdd-orchestrating.mdc +512 -18
  18. package/templates/doc-templates/task-spec-template.md +2 -2
  19. package/templates/doc-templates/ticket-template.md +5 -5
  20. package/templates/guides/architecture-guide.md +18 -10
  21. package/templates/guides/code-philosophy.md +1 -1
  22. package/templates/guides/context-files-guide.md +2 -2
  23. package/templates/guides/data-architecture-guide.md +1 -1
  24. package/templates/guides/design-doc-guide.md +1 -1
  25. package/templates/guides/learning-extraction.md +1 -1
  26. package/templates/guides/llm-writing-guide.md +183 -0
  27. package/templates/guides/planning-guide.md +16 -14
  28. package/templates/guides/zombie-process-cleanup.md +38 -0
  29. package/templates/hooks/lib/lint.ts +2 -2
  30. package/templates/hooks/lib/quality.ts +111 -10
  31. package/templates/hooks/post-tool-guide-check.ts +1 -1
  32. package/templates/hooks/stop-quality.ts +126 -21
  33. package/templates/knip.json +3 -0
  34. package/templates/skills/safeword-bdd-orchestrating/SKILL.md +512 -18
  35. package/templates/commands/drift.md +0 -43
  36. package/templates/commands/tdd.md +0 -29
  37. package/templates/cursor/rules/safeword-brainstorming.mdc +0 -198
  38. package/templates/cursor/rules/safeword-tdd-enforcing.mdc +0 -207
  39. package/templates/cursor/rules/safeword-writing-plans.mdc +0 -218
  40. package/templates/guides/llm-guide.md +0 -385
  41. package/templates/skills/safeword-brainstorming/SKILL.md +0 -210
  42. package/templates/skills/safeword-tdd-enforcing/SKILL.md +0 -380
  43. package/templates/skills/safeword-writing-plans/SKILL.md +0 -219
  44. /package/dist/{check-TI6D5FLM.js.map → check-JQMMRAOP.js.map} +0 -0
  45. /package/dist/{chunk-4IXCKHSI.js.map → chunk-ESL7ZI5O.js.map} +0 -0
  46. /package/dist/{diff-3ROXA7D3.js.map → diff-C3OHG2JB.js.map} +0 -0
  47. /package/dist/{reset-DZ5QUVBK.js.map → reset-P3WI3BKA.js.map} +0 -0
  48. /package/dist/{setup-LS4T3KNU.js.map → setup-LEDGIKSR.js.map} +0 -0
  49. /package/dist/{upgrade-CWBPH7AS.js.map → upgrade-RX5FE5GL.js.map} +0 -0
@@ -3,12 +3,12 @@ import {
3
3
  } from "./chunk-FJYRWU2V.js";
4
4
  import {
5
5
  getMissingPacks
6
- } from "./chunk-4IXCKHSI.js";
6
+ } from "./chunk-ESL7ZI5O.js";
7
7
  import {
8
8
  SAFEWORD_SCHEMA,
9
9
  createProjectContext,
10
10
  reconcile
11
- } from "./chunk-OPR33S5K.js";
11
+ } from "./chunk-WSFYO2MK.js";
12
12
  import {
13
13
  VERSION
14
14
  } from "./chunk-ORQHKDT2.js";
@@ -186,4 +186,4 @@ async function check(options) {
186
186
  export {
187
187
  check
188
188
  };
189
- //# sourceMappingURL=check-TI6D5FLM.js.map
189
+ //# sourceMappingURL=check-JQMMRAOP.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  setupPythonTooling
3
- } from "./chunk-OPR33S5K.js";
3
+ } from "./chunk-WSFYO2MK.js";
4
4
  import {
5
5
  VERSION
6
6
  } from "./chunk-ORQHKDT2.js";
@@ -121,4 +121,4 @@ export {
121
121
  detectLanguages,
122
122
  getMissingPacks
123
123
  };
124
- //# sourceMappingURL=chunk-4IXCKHSI.js.map
124
+ //# sourceMappingURL=chunk-ESL7ZI5O.js.map
@@ -1469,12 +1469,6 @@ var SAFEWORD_SCHEMA = {
1469
1469
  ".safeword/guides",
1470
1470
  ".safeword/templates",
1471
1471
  ".safeword/prompts",
1472
- ".safeword/planning",
1473
- ".safeword/planning/specs",
1474
- ".safeword/planning/test-definitions",
1475
- ".safeword/planning/design",
1476
- ".safeword/planning/issues",
1477
- ".safeword/planning/plans",
1478
1472
  ".safeword/scripts",
1479
1473
  ".cursor",
1480
1474
  ".cursor/rules",
@@ -1485,9 +1479,10 @@ var SAFEWORD_SCHEMA = {
1485
1479
  // Created on setup but NOT deleted on reset (preserves user data)
1486
1480
  preservedDirs: [
1487
1481
  ".safeword/learnings",
1488
- ".safeword/tickets",
1489
- ".safeword/tickets/completed",
1490
- ".safeword/logs"
1482
+ ".safeword/logs",
1483
+ ".safeword-project/tickets",
1484
+ ".safeword-project/tickets/completed",
1485
+ ".safeword-project/tmp"
1491
1486
  ],
1492
1487
  // Files to delete on upgrade (renamed or removed in newer versions)
1493
1488
  deprecatedFiles: [
@@ -1514,7 +1509,19 @@ var SAFEWORD_SCHEMA = {
1514
1509
  ".safeword/lib/jq-fallback.sh",
1515
1510
  // Skill renamed from enforcing-tdd to tdd-enforcing (v0.16.0)
1516
1511
  ".claude/skills/safeword-enforcing-tdd/SKILL.md",
1517
- ".cursor/rules/safeword-enforcing-tdd.mdc"
1512
+ ".cursor/rules/safeword-enforcing-tdd.mdc",
1513
+ // TDD skill and command removed - BDD skill includes full TDD in Phase 6 (v0.16.0)
1514
+ ".claude/skills/safeword-tdd-enforcing/SKILL.md",
1515
+ ".cursor/rules/safeword-tdd-enforcing.mdc",
1516
+ ".claude/commands/tdd.md",
1517
+ ".cursor/commands/tdd.md",
1518
+ ".safeword/commands/tdd.md",
1519
+ // Brainstorming skill removed - never used, BDD discovery phase covers this (v0.16.0)
1520
+ ".claude/skills/safeword-brainstorming/SKILL.md",
1521
+ ".cursor/rules/safeword-brainstorming.mdc",
1522
+ // Writing-plans skill removed - redundant with BDD decomposition + Claude Code native plan mode (v0.16.0)
1523
+ ".claude/skills/safeword-writing-plans/SKILL.md",
1524
+ ".cursor/rules/safeword-writing-plans.mdc"
1518
1525
  ],
1519
1526
  // Packages to uninstall on upgrade (now bundled in eslint-plugin-safeword)
1520
1527
  deprecatedPackages: [
@@ -1538,22 +1545,30 @@ var SAFEWORD_SCHEMA = {
1538
1545
  "eslint-plugin-jsx-a11y",
1539
1546
  "@next/eslint-plugin-next",
1540
1547
  "eslint-plugin-astro",
1541
- "@vitest/eslint-plugin",
1542
- // Pre-commit hooks no longer managed by safeword
1543
- "husky",
1544
- "lint-staged"
1548
+ "@vitest/eslint-plugin"
1545
1549
  ],
1546
1550
  // Directories to delete on upgrade (no longer managed by safeword)
1547
1551
  deprecatedDirs: [
1548
- ".husky",
1549
- // Pre-commit hooks no longer managed by safeword
1550
1552
  ".safeword/lib",
1551
1553
  // Shell libraries no longer needed with Bun (v0.13.0)
1552
- ".claude/skills/safeword-enforcing-tdd"
1554
+ ".safeword/planning",
1555
+ // Moved to .safeword-project/tickets/ (v0.16.0)
1556
+ ".safeword/tickets",
1557
+ // Moved to .safeword-project/tickets/ (v0.16.0)
1558
+ ".claude/skills/safeword-enforcing-tdd",
1553
1559
  // Renamed to safeword-tdd-enforcing (v0.16.0)
1560
+ ".claude/skills/safeword-tdd-enforcing",
1561
+ // Removed - BDD includes TDD (v0.16.0)
1562
+ ".claude/skills/safeword-brainstorming",
1563
+ // Removed - BDD discovery phase covers this (v0.16.0)
1564
+ ".claude/skills/safeword-writing-plans"
1565
+ // Removed - redundant with BDD + native plan mode (v0.16.0)
1554
1566
  ],
1555
1567
  // Files owned by safeword (overwritten on upgrade if content changed)
1556
1568
  ownedFiles: {
1569
+ // Project root config files (for audit/quality tools)
1570
+ ".jscpd.json": { template: ".jscpd.json" },
1571
+ "knip.json": { template: "knip.json" },
1557
1572
  // Core files
1558
1573
  ".safeword/AGENTS.md": { template: "AGENTS.md" },
1559
1574
  ".safeword/SAFEWORD.md": { template: "SAFEWORD.md" },
@@ -1587,7 +1602,7 @@ var SAFEWORD_SCHEMA = {
1587
1602
  },
1588
1603
  ".safeword/guides/design-doc-guide.md": { template: "guides/design-doc-guide.md" },
1589
1604
  ".safeword/guides/learning-extraction.md": { template: "guides/learning-extraction.md" },
1590
- ".safeword/guides/llm-guide.md": { template: "guides/llm-guide.md" },
1605
+ ".safeword/guides/llm-writing-guide.md": { template: "guides/llm-writing-guide.md" },
1591
1606
  ".safeword/guides/planning-guide.md": { template: "guides/planning-guide.md" },
1592
1607
  ".safeword/guides/testing-guide.md": { template: "guides/testing-guide.md" },
1593
1608
  ".safeword/guides/zombie-process-cleanup.md": { template: "guides/zombie-process-cleanup.md" },
@@ -1618,63 +1633,43 @@ var SAFEWORD_SCHEMA = {
1618
1633
  template: "scripts/bisect-zombie-processes.sh"
1619
1634
  },
1620
1635
  ".safeword/scripts/cleanup-zombies.sh": { template: "scripts/cleanup-zombies.sh" },
1621
- // Claude skills and commands (9 files)
1622
- ".claude/skills/safeword-brainstorming/SKILL.md": {
1623
- template: "skills/safeword-brainstorming/SKILL.md"
1624
- },
1636
+ // Claude skills (5) and commands (8)
1625
1637
  ".claude/skills/safeword-debugging/SKILL.md": {
1626
1638
  template: "skills/safeword-debugging/SKILL.md"
1627
1639
  },
1628
- ".claude/skills/safeword-tdd-enforcing/SKILL.md": {
1629
- template: "skills/safeword-tdd-enforcing/SKILL.md"
1630
- },
1631
1640
  ".claude/skills/safeword-quality-reviewing/SKILL.md": {
1632
1641
  template: "skills/safeword-quality-reviewing/SKILL.md"
1633
1642
  },
1634
1643
  ".claude/skills/safeword-refactoring/SKILL.md": {
1635
1644
  template: "skills/safeword-refactoring/SKILL.md"
1636
1645
  },
1637
- ".claude/skills/safeword-writing-plans/SKILL.md": {
1638
- template: "skills/safeword-writing-plans/SKILL.md"
1639
- },
1640
1646
  ".claude/skills/safeword-bdd-orchestrating/SKILL.md": {
1641
1647
  template: "skills/safeword-bdd-orchestrating/SKILL.md"
1642
1648
  },
1643
1649
  ".claude/commands/bdd.md": { template: "commands/bdd.md" },
1644
- ".claude/commands/tdd.md": { template: "commands/tdd.md" },
1645
- ".claude/commands/drift.md": { template: "commands/drift.md" },
1650
+ ".claude/commands/done.md": { template: "commands/done.md" },
1646
1651
  ".claude/commands/audit.md": { template: "commands/audit.md" },
1647
1652
  ".claude/commands/cleanup-zombies.md": { template: "commands/cleanup-zombies.md" },
1648
1653
  ".claude/commands/lint.md": { template: "commands/lint.md" },
1649
1654
  ".claude/commands/quality-review.md": { template: "commands/quality-review.md" },
1650
1655
  ".claude/commands/refactor.md": { template: "commands/refactor.md" },
1651
- // Cursor rules (7 files)
1656
+ // Cursor rules (6 files)
1652
1657
  ".cursor/rules/safeword-core.mdc": { template: "cursor/rules/safeword-core.mdc" },
1653
- ".cursor/rules/safeword-brainstorming.mdc": {
1654
- template: "cursor/rules/safeword-brainstorming.mdc"
1655
- },
1656
1658
  ".cursor/rules/safeword-debugging.mdc": {
1657
1659
  template: "cursor/rules/safeword-debugging.mdc"
1658
1660
  },
1659
- ".cursor/rules/safeword-tdd-enforcing.mdc": {
1660
- template: "cursor/rules/safeword-tdd-enforcing.mdc"
1661
- },
1662
1661
  ".cursor/rules/safeword-quality-reviewing.mdc": {
1663
1662
  template: "cursor/rules/safeword-quality-reviewing.mdc"
1664
1663
  },
1665
1664
  ".cursor/rules/safeword-refactoring.mdc": {
1666
1665
  template: "cursor/rules/safeword-refactoring.mdc"
1667
1666
  },
1668
- ".cursor/rules/safeword-writing-plans.mdc": {
1669
- template: "cursor/rules/safeword-writing-plans.mdc"
1670
- },
1671
1667
  ".cursor/rules/safeword-bdd-orchestrating.mdc": {
1672
1668
  template: "cursor/rules/safeword-bdd-orchestrating.mdc"
1673
1669
  },
1674
1670
  // Cursor commands (8 files - same as Claude)
1675
1671
  ".cursor/commands/bdd.md": { template: "commands/bdd.md" },
1676
- ".cursor/commands/tdd.md": { template: "commands/tdd.md" },
1677
- ".cursor/commands/drift.md": { template: "commands/drift.md" },
1672
+ ".cursor/commands/done.md": { template: "commands/done.md" },
1678
1673
  ".cursor/commands/audit.md": { template: "commands/audit.md" },
1679
1674
  ".cursor/commands/cleanup-zombies.md": { template: "commands/cleanup-zombies.md" },
1680
1675
  ".cursor/commands/lint.md": { template: "commands/lint.md" },
@@ -1970,4 +1965,4 @@ export {
1970
1965
  detectLanguages,
1971
1966
  createProjectContext
1972
1967
  };
1973
- //# sourceMappingURL=chunk-OPR33S5K.js.map
1968
+ //# sourceMappingURL=chunk-WSFYO2MK.js.map