@plures/praxis 1.2.13 → 1.3.0

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 (93) hide show
  1. package/README.md +44 -0
  2. package/dist/browser/chunk-MJK3IYTJ.js +384 -0
  3. package/dist/browser/{chunk-K377RW4V.js → chunk-N63K4KWS.js} +1 -1
  4. package/dist/browser/{engine-YJZV4SLD.js → engine-YIEGSX7U.js} +1 -1
  5. package/dist/browser/index.d.ts +104 -2
  6. package/dist/browser/index.js +188 -7
  7. package/dist/browser/integrations/svelte.d.ts +2 -2
  8. package/dist/browser/integrations/svelte.js +2 -2
  9. package/dist/browser/{reactive-engine.svelte-9aS0kTa8.d.ts → reactive-engine.svelte-DjynI82A.d.ts} +139 -5
  10. package/dist/node/{chunk-PRPQO6R5.js → chunk-5JQJZADT.js} +1 -1
  11. package/dist/node/chunk-KMJWAFZV.js +389 -0
  12. package/dist/node/{chunk-5RH7UAQC.js → chunk-PTH6MD6P.js} +1 -0
  13. package/dist/node/cli/index.cjs +1553 -839
  14. package/dist/node/cli/index.js +39 -2
  15. package/dist/node/cloud/index.d.cts +1 -1
  16. package/dist/node/cloud/index.d.ts +1 -1
  17. package/dist/node/components/index.d.cts +2 -2
  18. package/dist/node/components/index.d.ts +2 -2
  19. package/dist/node/conversations-KQBXTP3N.js +596 -0
  20. package/dist/node/{engine-2DQBKBJC.js → engine-FEN5IYZ5.js} +1 -1
  21. package/dist/node/index.cjs +911 -43
  22. package/dist/node/index.d.cts +574 -7
  23. package/dist/node/index.d.ts +574 -7
  24. package/dist/node/index.js +672 -26
  25. package/dist/node/integrations/svelte.cjs +190 -3
  26. package/dist/node/integrations/svelte.d.cts +3 -3
  27. package/dist/node/integrations/svelte.d.ts +3 -3
  28. package/dist/node/integrations/svelte.js +2 -2
  29. package/dist/node/{protocol-Qek7ebBl.d.ts → protocol-DcyGMmWY.d.cts} +8 -1
  30. package/dist/node/{protocol-Qek7ebBl.d.cts → protocol-DcyGMmWY.d.ts} +8 -1
  31. package/dist/node/{reactive-engine.svelte-CRNqHlbv.d.ts → reactive-engine.svelte-Cg0Yc2Hs.d.cts} +145 -6
  32. package/dist/node/{reactive-engine.svelte-BFIZfawz.d.cts → reactive-engine.svelte-DekxqFu0.d.ts} +145 -6
  33. package/dist/node/{terminal-adapter-B-UK_Vdz.d.ts → terminal-adapter-CvIvgTo4.d.ts} +1 -1
  34. package/dist/node/{terminal-adapter-BQSIF5bf.d.cts → terminal-adapter-Db-snPJ3.d.cts} +1 -1
  35. package/dist/node/{validate-CNHUULQE.js → validate-EN3M4FUR.js} +1 -1
  36. package/dist/node/{verify-KLJRXVJS.js → verify-7VZRP2WS.js} +2 -2
  37. package/docs/BOT_UPDATE_POLICY.md +125 -0
  38. package/docs/DOGFOODING_CHECKLIST.md +254 -0
  39. package/docs/DOGFOODING_INDEX.md +169 -0
  40. package/docs/DOGFOODING_QUICK_START.md +140 -0
  41. package/docs/KNO_ENG_EXTRACTION_PLAN.md +577 -0
  42. package/docs/PLURES_TOOLS_INVENTORY.md +170 -0
  43. package/docs/README.md +12 -0
  44. package/docs/TESTING_BOT_WORKFLOWS.md +154 -0
  45. package/docs/conversations/INTEGRATION_POINTS.md +719 -0
  46. package/docs/conversations/README.md +168 -0
  47. package/docs/core/extending-praxis-core.md +604 -0
  48. package/docs/core/praxis-core-api.md +385 -0
  49. package/docs/decision-ledger/contract-index.json +2 -2
  50. package/docs/decision-ledger/decisions/2026-02-01-monorepo-organization.md +130 -0
  51. package/docs/examples/DOGFOODING_WORKFLOW_EXAMPLE.md +295 -0
  52. package/docs/examples/README.md +41 -0
  53. package/docs/workflows/pr-overlap-guard.md +50 -0
  54. package/package.json +8 -3
  55. package/src/__tests__/chronicle.test.ts +512 -0
  56. package/src/__tests__/conversations.test.ts +312 -0
  57. package/src/__tests__/edge-cases.test.ts +1 -1
  58. package/src/__tests__/engine-dx.test.ts +355 -0
  59. package/src/__tests__/engine-v2.test.ts +532 -0
  60. package/src/cli/commands/conversations.ts +252 -0
  61. package/src/cli/index.ts +73 -0
  62. package/src/conversations/README.md +230 -0
  63. package/src/conversations/candidate.schema.json +123 -0
  64. package/src/conversations/candidates.ts +114 -0
  65. package/src/conversations/capture.ts +56 -0
  66. package/src/conversations/classify.ts +110 -0
  67. package/src/conversations/conversation.schema.json +106 -0
  68. package/src/conversations/emitters/fs.ts +65 -0
  69. package/src/conversations/emitters/github.ts +115 -0
  70. package/src/conversations/gate.ts +102 -0
  71. package/src/conversations/index.ts +28 -0
  72. package/src/conversations/normalize.ts +51 -0
  73. package/src/conversations/redact.ts +57 -0
  74. package/src/conversations/types.ts +96 -0
  75. package/src/core/chronicle/chronicle.ts +227 -0
  76. package/src/core/chronicle/context.ts +80 -0
  77. package/src/core/chronicle/index.ts +53 -0
  78. package/src/core/chronicle/mcp.ts +135 -0
  79. package/src/core/chronicle/types.ts +61 -0
  80. package/src/core/completeness.ts +274 -0
  81. package/src/core/engine.ts +143 -3
  82. package/src/core/pluresdb/index.ts +22 -0
  83. package/src/core/pluresdb/store.ts +171 -8
  84. package/src/core/protocol.ts +7 -0
  85. package/src/core/rule-result.ts +130 -0
  86. package/src/core/rules.ts +24 -5
  87. package/src/core/ui-rules.ts +340 -0
  88. package/src/dsl/index.ts +6 -0
  89. package/src/index.ts +45 -0
  90. package/src/integrations/pluresdb.ts +22 -0
  91. package/src/vite/completeness-plugin.ts +72 -0
  92. package/dist/browser/chunk-VOMLVI6V.js +0 -197
  93. package/dist/node/chunk-VOMLVI6V.js +0 -197
@@ -0,0 +1,168 @@
1
+ # Praxis Conversations Module
2
+
3
+ **Status**: Planning
4
+ **Target Version**: Praxis 2.0
5
+ **Module Path**: `@plures/praxis/conversations`
6
+
7
+ ## Overview
8
+
9
+ The Conversations module brings knowledge capture and engineering capabilities into Praxis, enabling developers to capture insights, decisions, and context directly from their IDE without leaving their workflow.
10
+
11
+ ## Key Features
12
+
13
+ ### ✅ Planned Features
14
+
15
+ #### IDE Capture
16
+ - **In-IDE knowledge capture**: Capture thoughts and decisions without context switching
17
+ - **Code-aware**: Automatically capture file paths, line numbers, and git context
18
+ - **Quick access**: Keyboard shortcuts and command palette integration
19
+ - **Contextual linking**: Link knowledge to specific code locations
20
+
21
+ #### Knowledge Management
22
+ - **Structured templates**: Pre-defined templates for decisions, patterns, notes, bugs
23
+ - **Flexible organization**: Tags, categories, and custom taxonomies
24
+ - **Relationship mapping**: Connect related pieces of knowledge
25
+ - **Visual graph**: See how knowledge pieces relate to each other
26
+
27
+ #### Local-First Architecture
28
+ - **Offline-capable**: Full functionality without internet connection
29
+ - **PluresDB storage**: Leverages Praxis's proven local-first datastore
30
+ - **Automatic sync**: Cloud sync when connected (via Praxis Cloud)
31
+ - **Conflict-free**: CRDT-based resolution for concurrent edits
32
+
33
+ #### Search & Discovery
34
+ - **Fast full-text search**: Find knowledge quickly
35
+ - **Filter by type, tags, date**: Precise filtering
36
+ - **Code context search**: Find by file or line number
37
+ - **Graph navigation**: Explore related knowledge
38
+
39
+ ## Documentation
40
+
41
+ - [Extraction Plan](../KNO_ENG_EXTRACTION_PLAN.md) - Detailed refactoring plan from kno-eng
42
+ - [Integration Points](#integration-points) - How it fits into Praxis
43
+ - [API Preview](#api-preview) - Planned API design
44
+ - [Migration Guide](#migration-from-kno-eng) - For existing kno-eng users
45
+
46
+ ## Integration Points
47
+
48
+ ### 1. PluresDB Storage
49
+ All knowledge data is stored in PluresDB collections, leveraging existing local-first infrastructure.
50
+
51
+ ### 2. Praxis Logic Engine
52
+ Knowledge processing rules (auto-tagging, smart linking) run as Praxis rules.
53
+
54
+ ### 3. Svelte Components
55
+ UI components generated using Praxis component system.
56
+
57
+ ### 4. Praxis Cloud
58
+ Optional cloud sync via existing Praxis Cloud infrastructure.
59
+
60
+ ### 5. CLI Integration
61
+ Knowledge management commands integrated into Praxis CLI.
62
+
63
+ ## API Preview
64
+
65
+ > **Note**: This module is in planning phase. The following is a preview of the intended API.
66
+
67
+ ### Basic Usage
68
+
69
+ ```typescript
70
+ import {
71
+ createKnowledgeDB,
72
+ KnowledgeCaptureEngine
73
+ } from '@plures/praxis/conversations';
74
+
75
+ // Initialize
76
+ const db = await createKnowledgeDB({ mode: 'auto' });
77
+ const engine = new KnowledgeCaptureEngine({ db });
78
+
79
+ // Capture
80
+ const entry = await engine.capture({
81
+ type: 'decision',
82
+ title: 'Use PluresDB for storage',
83
+ content: 'Detailed reasoning...',
84
+ tags: ['architecture', 'storage'],
85
+ context: {
86
+ filePath: '/src/db.ts',
87
+ lineNumber: 42,
88
+ }
89
+ });
90
+
91
+ // Search
92
+ const results = await engine.search('PluresDB');
93
+ ```
94
+
95
+ ### CLI Commands
96
+
97
+ ```bash
98
+ praxis knowledge capture "My decision"
99
+ praxis knowledge search "architecture"
100
+ praxis knowledge export --format markdown
101
+ ```
102
+
103
+ ## Migration from kno-eng
104
+
105
+ ### Migration Tool
106
+
107
+ ```bash
108
+ # Run migration
109
+ praxis knowledge migrate --from kno-eng --source ~/.kno-eng/data
110
+
111
+ # Verify migration
112
+ praxis knowledge verify
113
+ ```
114
+
115
+ ### Compatibility Layer
116
+
117
+ ```typescript
118
+ import { knoEngCompat } from '@plures/praxis/conversations/compat';
119
+
120
+ const engine = new KnowledgeCaptureEngine({ db });
121
+ const kno = knoEngCompat(engine); // kno-eng compatible API
122
+ ```
123
+
124
+ ## Roadmap
125
+
126
+ ### Phase 1: Foundation (v2.0) - Q2 2026
127
+ - [x] Planning complete
128
+ - [ ] Core infrastructure
129
+ - [ ] PluresDB schemas
130
+ - [ ] Basic CLI commands
131
+
132
+ ### Phase 2: IDE Integration (v2.1) - Q3 2026
133
+ - [ ] VS Code extension
134
+ - [ ] Code context extraction
135
+ - [ ] Quick capture UI
136
+
137
+ ### Phase 3: UI & Components (v2.2) - Q4 2026
138
+ - [ ] Svelte components
139
+ - [ ] Knowledge graph visualization
140
+ - [ ] Search interface
141
+
142
+ ### Phase 4: Sync & Collaboration (v2.3) - Q1 2027
143
+ - [ ] Praxis Cloud integration
144
+ - [ ] Team knowledge sharing
145
+ - [ ] Conflict resolution
146
+
147
+ ### Phase 5: Advanced Features (v2.4+) - Q2 2027+
148
+ - [ ] AI-powered suggestions
149
+ - [ ] Graph analytics
150
+ - [ ] JetBrains IDE support
151
+
152
+ ## Contributing
153
+
154
+ 1. Read the [Extraction Plan](../KNO_ENG_EXTRACTION_PLAN.md)
155
+ 2. Check [open issues](https://github.com/plures/praxis/issues?q=label%3Aconversations)
156
+ 3. Join the discussion in [GitHub Discussions](https://github.com/plures/praxis/discussions)
157
+
158
+ ## Resources
159
+
160
+ - [Extraction Plan](../KNO_ENG_EXTRACTION_PLAN.md) - Detailed refactoring plan
161
+ - [PluresDB Integration](../core/pluresdb-integration.md) - Local-first storage
162
+ - [Praxis Framework](../../FRAMEWORK.md) - Overall architecture
163
+
164
+ ---
165
+
166
+ **Last Updated**: 2026-02-01
167
+ **Module Status**: Planning
168
+ **Next Milestone**: Phase 1 Kickoff