crewly 1.20.418 → 1.20.420

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 (47) hide show
  1. package/config/skills/agent/core/record-learning/SKILL.md +12 -1
  2. package/config/skills/agent/core/record-learning/execute.sh +24 -2
  3. package/config/skills/team-leader/decide-correction/SKILL.md +65 -0
  4. package/config/skills/team-leader/decide-correction/execute.sh +63 -0
  5. package/config/skills/team-leader/handle-failure/SKILL.md +2 -0
  6. package/config/skills/team-leader/handle-failure/execute.sh +18 -0
  7. package/dist/backend/backend/src/constants.d.ts +38 -3
  8. package/dist/backend/backend/src/constants.d.ts.map +1 -1
  9. package/dist/backend/backend/src/constants.js +38 -3
  10. package/dist/backend/backend/src/constants.js.map +1 -1
  11. package/dist/backend/backend/src/controllers/memory/memory.controller.d.ts +42 -2
  12. package/dist/backend/backend/src/controllers/memory/memory.controller.d.ts.map +1 -1
  13. package/dist/backend/backend/src/controllers/memory/memory.controller.js +111 -4
  14. package/dist/backend/backend/src/controllers/memory/memory.controller.js.map +1 -1
  15. package/dist/backend/backend/src/controllers/memory/memory.routes.d.ts +3 -0
  16. package/dist/backend/backend/src/controllers/memory/memory.routes.d.ts.map +1 -1
  17. package/dist/backend/backend/src/controllers/memory/memory.routes.js +7 -1
  18. package/dist/backend/backend/src/controllers/memory/memory.routes.js.map +1 -1
  19. package/dist/backend/backend/src/controllers/team/team-export.controller.d.ts +3 -2
  20. package/dist/backend/backend/src/controllers/team/team-export.controller.d.ts.map +1 -1
  21. package/dist/backend/backend/src/controllers/team/team-export.controller.js +5 -3
  22. package/dist/backend/backend/src/controllers/team/team-export.controller.js.map +1 -1
  23. package/dist/backend/backend/src/index.d.ts.map +1 -1
  24. package/dist/backend/backend/src/index.js +25 -0
  25. package/dist/backend/backend/src/index.js.map +1 -1
  26. package/dist/backend/backend/src/services/core/team-export.service.d.ts +58 -2
  27. package/dist/backend/backend/src/services/core/team-export.service.d.ts.map +1 -1
  28. package/dist/backend/backend/src/services/core/team-export.service.js +88 -3
  29. package/dist/backend/backend/src/services/core/team-export.service.js.map +1 -1
  30. package/dist/backend/backend/src/services/memory/correction-ladder.service.d.ts +225 -0
  31. package/dist/backend/backend/src/services/memory/correction-ladder.service.d.ts.map +1 -0
  32. package/dist/backend/backend/src/services/memory/correction-ladder.service.js +335 -0
  33. package/dist/backend/backend/src/services/memory/correction-ladder.service.js.map +1 -0
  34. package/dist/backend/build-info.json +2 -2
  35. package/dist/cli/backend/src/constants.d.ts +38 -3
  36. package/dist/cli/backend/src/constants.d.ts.map +1 -1
  37. package/dist/cli/backend/src/constants.js +38 -3
  38. package/dist/cli/backend/src/constants.js.map +1 -1
  39. package/dist/cli/cli/src/commands/team-export.d.ts +18 -1
  40. package/dist/cli/cli/src/commands/team-export.d.ts.map +1 -1
  41. package/dist/cli/cli/src/commands/team-export.js +25 -3
  42. package/dist/cli/cli/src/commands/team-export.js.map +1 -1
  43. package/dist/cli/cli/src/index.js +1 -0
  44. package/dist/cli/cli/src/index.js.map +1 -1
  45. package/frontend/dist/assets/{index-b5c4b66c.js → index-d15d21a9.js} +112 -112
  46. package/frontend/dist/index.html +1 -1
  47. package/package.json +1 -1
@@ -1821,6 +1821,31 @@ export const WIKI_GAPS_CONSTANTS = {
1821
1821
  /** Session that authors the page. */
1822
1822
  CALLER_SESSION: 'system:wiki-knowledge-gaps',
1823
1823
  };
1824
+ /**
1825
+ * Correction ladder (#810): repeated corrections of one class become a
1826
+ * team-lead WorkItem asking for a check in code instead of more prose.
1827
+ */
1828
+ export const CORRECTION_LADDER_CONSTANTS = {
1829
+ /** Per-project store, under the project data dir */
1830
+ STORE_FILE: 'correction-ladder.json',
1831
+ /** Occurrences of a class (or after a prose decision) that raise the lead's WorkItem */
1832
+ THRESHOLD: 2,
1833
+ /** An undecided WorkItem older than this is treated as abandoned and raised again */
1834
+ REOPEN_AFTER_MS: 14 * 24 * 60 * 60_000,
1835
+ /** The rungs, highest first: make it impossible → catch before merge → catch when it happens → tell them again */
1836
+ RUNGS: ['structural', 'check', 'hook', 'prose'],
1837
+ /** Class slug bounds */
1838
+ CLASS_MIN_CHARS: 2,
1839
+ CLASS_MAX_CHARS: 48,
1840
+ /** Occurrences kept per class (newest) */
1841
+ MAX_OCCURRENCES_KEPT: 20,
1842
+ /** Occurrences quoted in the lead's brief */
1843
+ OCCURRENCES_IN_BRIEF: 5,
1844
+ /** Correction text kept per occurrence */
1845
+ OCCURRENCE_TEXT_MAX_CHARS: 400,
1846
+ /** WorkItem `metadata.kind` */
1847
+ WORKITEM_KIND: 'correction-ladder',
1848
+ };
1824
1849
  /**
1825
1850
  * Daily agent-memory refresh (#1345): what an agent recorded in the wiki
1826
1851
  * log is reflected into its `memory.json` and the project's memory.
@@ -9754,10 +9779,20 @@ export const ACTIVITY_LOG_CONSTANTS = {
9754
9779
  * importer knows what to reconnect.
9755
9780
  */
9756
9781
  export const TEAM_EXPORT_CONSTANTS = {
9757
- /** Format version written by this release */
9758
- VERSION: '1.1',
9782
+ /** Format version written by this release (1.2 added the optional wiki) */
9783
+ VERSION: '1.2',
9759
9784
  /** Versions `importTeam` accepts */
9760
- SUPPORTED_VERSIONS: ['1.0', '1.1'],
9785
+ SUPPORTED_VERSIONS: ['1.0', '1.1', '1.2'],
9786
+ /** Folder of a team's wiki vault inside its team directory */
9787
+ WIKI_DIR: 'wiki',
9788
+ /** Only these vault files travel: knowledge pages, never ledgers or compile state */
9789
+ WIKI_PAGE_EXTENSION: '.md',
9790
+ /** A wiki page larger than this is listed as skipped, not packaged */
9791
+ WIKI_MAX_PAGE_BYTES: 512 * 1024,
9792
+ /** Once packaged pages reach this many bytes, the rest are listed as skipped */
9793
+ WIKI_MAX_TOTAL_BYTES: 16 * 1024 * 1024,
9794
+ /** A packaged page path: vault-relative, `.md`, no dot segments, no traversal */
9795
+ WIKI_PAGE_PATH_PATTERN: /^(?:[A-Za-z0-9_-][A-Za-z0-9_.-]*\/)*[A-Za-z0-9_-][A-Za-z0-9_.-]*\.md$/,
9761
9796
  /** Member fields that describe this install's running agent, never the team */
9762
9797
  RUNTIME_MEMBER_FIELDS: ['agentId', 'currentTickets', 'readyAt', 'loginRequired', 'usageLimited', 'runtimeOverride', 'capabilities', 'lastActivityCheck'],
9763
9798
  /** Connector id → words in prompts / skill ids / schedules that mean the team uses it */