@plures/praxis 2.0.0 → 2.0.3

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 (31) hide show
  1. package/README.md +164 -1067
  2. package/dist/browser/{chunk-6MVRT7CK.js → chunk-IUEKGHQN.js} +13 -3
  3. package/dist/browser/index.js +1 -1
  4. package/dist/browser/unified/index.js +1 -1
  5. package/dist/node/{chunk-6MVRT7CK.js → chunk-IUEKGHQN.js} +13 -3
  6. package/dist/node/index.cjs +13 -3
  7. package/dist/node/index.js +1 -1
  8. package/dist/node/unified/index.cjs +13 -3
  9. package/dist/node/unified/index.js +1 -1
  10. package/docs/README.md +58 -102
  11. package/docs/archive/1.x/CONVERSATIONS_IMPLEMENTATION.md +207 -0
  12. package/docs/archive/1.x/DECISION_LEDGER_IMPLEMENTATION.md +109 -0
  13. package/docs/archive/1.x/DECISION_LEDGER_SUMMARY.md +424 -0
  14. package/docs/archive/1.x/ELEVATION_SUMMARY.md +249 -0
  15. package/docs/archive/1.x/FEATURE_SUMMARY.md +238 -0
  16. package/docs/archive/1.x/GOLDEN_PATH_IMPLEMENTATION.md +280 -0
  17. package/docs/archive/1.x/IMPLEMENTATION.md +166 -0
  18. package/docs/archive/1.x/IMPLEMENTATION_COMPLETE.md +389 -0
  19. package/docs/archive/1.x/IMPLEMENTATION_SUMMARY.md +59 -0
  20. package/docs/archive/1.x/INTEGRATION_ENHANCEMENT_SUMMARY.md +238 -0
  21. package/docs/archive/1.x/KNO_ENG_REFACTORING_SUMMARY.md +198 -0
  22. package/docs/archive/1.x/MONOREPO_SUMMARY.md +158 -0
  23. package/docs/archive/1.x/README.md +28 -0
  24. package/docs/archive/1.x/SVELTE_INTEGRATION_SUMMARY.md +415 -0
  25. package/docs/archive/1.x/TASK_1_COMPLETE.md +235 -0
  26. package/docs/archive/1.x/TASK_1_SUMMARY.md +281 -0
  27. package/docs/archive/1.x/VERSION_0.2.0_RELEASE_NOTES.md +288 -0
  28. package/docs/archive/1.x/ValidationChecklist.md +7 -0
  29. package/package.json +11 -5
  30. package/src/unified/__tests__/unified-qa.test.ts +761 -0
  31. package/src/unified/core.ts +19 -2
@@ -0,0 +1,198 @@
1
+ # kno-eng Refactoring: Executive Summary
2
+
3
+ **Date**: 2026-02-01
4
+ **Status**: Planning Complete - Awaiting Approval
5
+ **Issue**: Refactor kno-eng into Praxis: capture/UX layer (no separate sync)
6
+
7
+ ## Overview
8
+
9
+ This repository now contains comprehensive planning documentation for refactoring the external `kno-eng` (knowledge engineering) tool into Praxis as the new `conversations` module. The refactoring preserves kno-eng's valuable IDE capture and UX capabilities while eliminating redundant sync functionality in favor of Praxis's existing local-first PluresDB architecture.
10
+
11
+ ## Key Documents Created
12
+
13
+ ### 1. [Extraction Plan](./docs/KNO_ENG_EXTRACTION_PLAN.md) (577 lines)
14
+ **Purpose**: Comprehensive analysis of what to keep, cut, and defer from kno-eng
15
+
16
+ **Key Sections**:
17
+ - **What to KEEP**: IDE capture/UX, knowledge engineering features, developer experience
18
+ - **What to CUT**: Custom sync implementation, redundant persistence, separate auth
19
+ - **What to DEFER**: Advanced analytics, collaboration features, external integrations
20
+ - **Migration Strategy**: 5-phase implementation plan (10 weeks)
21
+ - **Technical Decisions**: Storage (PluresDB), UI (Svelte 5), IDE support (VS Code first)
22
+ - **Success Metrics**: Functional, performance, and UX targets
23
+ - **Risk Mitigation**: Feature parity, performance, adoption, scope creep
24
+
25
+ **Highlights**:
26
+ - Complete data model design (PluresDB schemas)
27
+ - File structure blueprint
28
+ - Example API usage
29
+ - Resource requirements
30
+ - Risk analysis
31
+
32
+ ### 2. [Integration Points](./docs/conversations/INTEGRATION_POINTS.md) (719 lines)
33
+ **Purpose**: Detailed technical specification of how kno-eng integrates into Praxis
34
+
35
+ **Key Sections**:
36
+ - **Data Layer**: PluresDB schema definitions with full TypeScript implementations
37
+ - **Logic Engine**: Facts, events, and processing rules integration
38
+ - **UI Components**: Svelte 5 component generation and custom components
39
+ - **CLI Integration**: Knowledge management commands
40
+ - **Sync Integration**: PluresDB + Praxis Cloud configuration
41
+ - **IDE Extension**: VS Code extension architecture with code samples
42
+ - **Testing**: Test infrastructure and examples
43
+
44
+ **Highlights**:
45
+ - Complete code examples for every integration point
46
+ - Architecture diagrams
47
+ - Database initialization code
48
+ - VS Code extension implementation
49
+ - Test infrastructure setup
50
+
51
+ ### 3. [Conversations Module README](./docs/conversations/README.md) (168 lines)
52
+ **Purpose**: User-facing documentation for the new conversations module
53
+
54
+ **Key Sections**:
55
+ - Module overview and features
56
+ - API preview and usage examples
57
+ - CLI commands
58
+ - Migration guide from kno-eng
59
+ - Roadmap (Phases 1-5)
60
+ - FAQ
61
+
62
+ **Highlights**:
63
+ - Developer-friendly quick start
64
+ - Clear migration path for existing kno-eng users
65
+ - Timeline expectations (Q2 2026 - Q2 2027)
66
+
67
+ ## Deliverables Summary
68
+
69
+ ✅ **Extraction Plan**: What to keep/cut/defer from kno-eng
70
+ ✅ **Integration Points**: Target integration points into praxis-conversations
71
+ ✅ **API Design**: Preview of conversations module API
72
+ ✅ **Migration Strategy**: 5-phase implementation roadmap
73
+ ✅ **Technical Specifications**: Complete code examples for all integration points
74
+ ✅ **Risk Analysis**: Identified risks and mitigation strategies
75
+ ✅ **Success Metrics**: Quantifiable targets for functional, performance, and UX goals
76
+
77
+ ## Architecture Summary
78
+
79
+ ### Core Value Proposition
80
+ Transform kno-eng from a standalone tool with custom sync into a first-class Praxis module that:
81
+ 1. **Preserves**: IDE capture, UX, knowledge engineering features
82
+ 2. **Leverages**: Praxis's local-first PluresDB, logic engine, component system
83
+ 3. **Eliminates**: Redundant sync, storage, and auth implementations
84
+ 4. **Integrates**: CLI, VS Code extension, Svelte UI, Praxis Cloud
85
+
86
+ ### Integration Model
87
+
88
+ ```
89
+ kno-eng Capabilities
90
+
91
+ ┌─────────────────────────────────┐
92
+ │ Praxis Conversations Module │
93
+ ├─────────────────────────────────┤
94
+ │ Capture │ Knowledge │ Sync │
95
+ └────┬──────────┬───────────┬─────┘
96
+ │ │ │
97
+ ▼ ▼ ▼
98
+ PluresDB Logic Praxis
99
+ (Storage) Engine Cloud
100
+ (Rules) (Sync)
101
+ ```
102
+
103
+ ## Key Technical Decisions
104
+
105
+ | Decision | Choice | Rationale |
106
+ |----------|--------|-----------|
107
+ | **Storage** | PluresDB | Already integrated, local-first, CRDT-based |
108
+ | **UI Framework** | Svelte 5 | Praxis standard, component generation |
109
+ | **IDE Support** | VS Code first | Broader user base, easier integration |
110
+ | **Sync Protocol** | PluresDB + Unum | Don't reinvent, proven architecture |
111
+ | **Module Structure** | `/src/conversations` | First-class feature in praxis core |
112
+
113
+ ## Implementation Roadmap
114
+
115
+ ### Phase 1: Foundation (Weeks 1-2)
116
+ - Core infrastructure and PluresDB schemas
117
+ - Basic CLI commands
118
+ - Praxis rules for knowledge processing
119
+
120
+ ### Phase 2: IDE Integration (Weeks 3-4)
121
+ - VS Code extension with PluresDB integration
122
+ - Code context extraction
123
+ - Local-first functionality
124
+
125
+ ### Phase 3: UI Components (Weeks 5-6)
126
+ - Svelte components generation
127
+ - Knowledge graph visualization
128
+ - Search and navigation interfaces
129
+
130
+ ### Phase 4: Sync & Collaboration (Weeks 7-8)
131
+ - Praxis Cloud integration
132
+ - Team knowledge sharing
133
+ - Conflict resolution testing
134
+
135
+ ### Phase 5: Polish & Documentation (Weeks 9-10)
136
+ - User documentation
137
+ - Migration guide for kno-eng users
138
+ - Performance optimization
139
+
140
+ ## Success Criteria
141
+
142
+ ### Must Have
143
+ - [x] Complete extraction plan
144
+ - [x] Integration architecture defined
145
+ - [ ] Stakeholder approval
146
+ - [ ] Phase 1 implementation complete
147
+ - [ ] VS Code extension working
148
+ - [ ] Knowledge syncs via PluresDB
149
+
150
+ ### Performance Targets
151
+ - Capture latency: < 50ms
152
+ - Search (10k entries): < 100ms
153
+ - Sync (typical): < 1s
154
+ - VS Code extension load: < 200ms
155
+
156
+ ### User Experience
157
+ - < 3 clicks to capture knowledge
158
+ - Zero config for local-first usage
159
+ - < 5 min setup for cloud sync
160
+ - Keyboard shortcuts for all common actions
161
+
162
+ ## Migration Path for kno-eng Users
163
+
164
+ 1. **Compatibility Layer**: Provides kno-eng API compatibility
165
+ 2. **Migration Tool**: `praxis knowledge migrate --from kno-eng`
166
+ 3. **Gradual Transition**: kno-eng maintained for 6 months post-release
167
+ 4. **Clear Benefits**: Better sync, cloud backup, team collaboration
168
+
169
+ ## Next Steps
170
+
171
+ 1. **Review**: Stakeholder review of planning documents ← **YOU ARE HERE**
172
+ 2. **Approval**: Get sign-off to proceed with Phase 1
173
+ 3. **Prototype**: Build Phase 1 prototype (1 week)
174
+ 4. **Beta**: Recruit 10 beta testers from kno-eng community
175
+ 5. **Implement**: Execute 10-week implementation plan
176
+
177
+ ## Resources
178
+
179
+ - **Main Extraction Plan**: [docs/KNO_ENG_EXTRACTION_PLAN.md](./docs/KNO_ENG_EXTRACTION_PLAN.md)
180
+ - **Integration Points**: [docs/conversations/INTEGRATION_POINTS.md](./docs/conversations/INTEGRATION_POINTS.md)
181
+ - **Module README**: [docs/conversations/README.md](./docs/conversations/README.md)
182
+ - **PluresDB Integration**: [docs/core/pluresdb-integration.md](./docs/core/pluresdb-integration.md)
183
+ - **Praxis Framework**: [FRAMEWORK.md](./FRAMEWORK.md)
184
+
185
+ ## Questions or Feedback?
186
+
187
+ Please review the detailed documentation and provide feedback on:
188
+ 1. Scope: Is the keep/cut/defer analysis correct?
189
+ 2. Architecture: Are the integration points appropriate?
190
+ 3. Timeline: Is the 10-week implementation realistic?
191
+ 4. Risks: Have we identified all major risks?
192
+ 5. Migration: Is the migration path clear for existing users?
193
+
194
+ ---
195
+
196
+ **Planning Complete**: 2026-02-01
197
+ **Total Documentation**: 1,464 lines across 3 documents
198
+ **Status**: Ready for stakeholder review and approval
@@ -0,0 +1,158 @@
1
+ # Monorepo Organization - Implementation Summary
2
+
3
+ ## What Has Been Done
4
+
5
+ This PR proposes and documents the target monorepo structure for the Praxis repository. **No code has been moved yet** - this is purely documentation and planning.
6
+
7
+ ## Changes Made
8
+
9
+ ### 1. Documentation Created
10
+
11
+ #### Main Documentation
12
+ - **MONOREPO.md**: Complete monorepo organization plan with target structure, package descriptions, ownership boundaries, and migration plan
13
+ - **MIGRATION_GUIDE.md**: User and contributor guide for the transition
14
+ - **docs/decision-ledger/decisions/2026-02-01-monorepo-organization.md**: Decision ledger entry documenting this architectural change
15
+
16
+ #### Package Documentation
17
+ - **packages/praxis-core/README.md**: Documents what belongs in the core logic library
18
+ - **packages/praxis-cli/README.md**: Documents CLI tools and generators
19
+ - **packages/praxis-svelte/README.md**: Documents Svelte 5 integration
20
+ - **packages/praxis-cloud/README.md**: Documents cloud sync features
21
+ - **packages/praxis/README.md**: Documents main unified package
22
+
23
+ ### 2. Package Structure
24
+
25
+ Created package directories with package.json files:
26
+ - `packages/praxis-core/package.json` - Core logic library
27
+ - `packages/praxis-cli/package.json` - CLI tools
28
+ - `packages/praxis-svelte/package.json` - Svelte integration
29
+ - `packages/praxis-cloud/package.json` - Cloud features
30
+ - `packages/praxis/package.json` - Main package
31
+
32
+ ### 3. Workspace Configuration
33
+
34
+ - Updated root `package.json` with workspaces configuration
35
+ - Created `apps/` directory for example applications
36
+ - Updated `.gitignore` for package-specific build artifacts
37
+
38
+ ### 4. Updated Existing Documentation
39
+
40
+ - **CONTRIBUTING.md**: Added monorepo structure section
41
+ - **README.md**: Updated architecture section to show target and current structures
42
+
43
+ ## Target Structure
44
+
45
+ ```
46
+ praxis/
47
+ ├── packages/ # Published npm packages
48
+ │ ├── praxis-core/ # Core logic (zero dependencies)
49
+ │ ├── praxis-cli/ # CLI tools
50
+ │ ├── praxis-svelte/ # Svelte integration
51
+ │ ├── praxis-cloud/ # Cloud sync
52
+ │ └── praxis/ # Main package (re-exports all)
53
+ ├── apps/ # Example applications
54
+ ├── tools/ # Development tools
55
+ ├── ui/ # UI components
56
+ ├── docs/ # Documentation
57
+ └── examples/ # Simple examples
58
+ ```
59
+
60
+ ## Key Principles
61
+
62
+ 1. **Incremental**: Changes will be made step-by-step
63
+ 2. **Non-Breaking**: Existing code continues to work
64
+ 3. **Reversible**: Each step can be rolled back
65
+ 4. **Zero-Dependency Core**: Core logic has no external dependencies
66
+
67
+ ## What's NOT Included
68
+
69
+ This PR does **NOT** include:
70
+ - Moving any existing code
71
+ - Changing any imports
72
+ - Modifying the build system
73
+ - Installing workspace dependencies
74
+ - Running tests on the new structure
75
+
76
+ ## Next Steps
77
+
78
+ After this PR is reviewed and merged:
79
+
80
+ 1. **Phase 2: Complete Package Structure**
81
+ - Create TypeScript configurations for each package
82
+ - Set up build configurations
83
+ - Test workspace installation
84
+
85
+ 2. **Phase 3: Core Extraction**
86
+ - Move logic engine to praxis-core
87
+ - Move schema system to praxis-core
88
+ - Move decision ledger to praxis-core
89
+ - Update imports
90
+ - Verify tests
91
+
92
+ 3. **Phase 4: Integration Extraction**
93
+ - Move CLI to praxis-cli
94
+ - Move Svelte integration to praxis-svelte
95
+ - Move cloud features to praxis-cloud
96
+
97
+ 4. **Phase 5: Compatibility Layer**
98
+ - Create main praxis package with re-exports
99
+ - Verify backwards compatibility
100
+
101
+ 5. **Phase 6: Examples Migration**
102
+ - Move example apps to apps/
103
+ - Update dependencies
104
+
105
+ ## Benefits
106
+
107
+ ### For Users
108
+
109
+ - **Smaller Bundles**: Import only what you need
110
+ - **Clearer APIs**: Each package has a focused purpose
111
+ - **Gradual Adoption**: Can switch to granular imports over time
112
+ - **Backwards Compatible**: Existing code continues to work
113
+
114
+ ### For Contributors
115
+
116
+ - **Clearer Ownership**: Each package has defined boundaries
117
+ - **Easier Testing**: Test packages in isolation
118
+ - **Better Organization**: Find code more easily
119
+ - **Focused PRs**: Changes can be scoped to specific packages
120
+
121
+ ### For Maintainers
122
+
123
+ - **Independent Versioning**: Packages can evolve at different rates
124
+ - **Better Dependency Management**: Core has zero dependencies
125
+ - **Clearer Release Process**: Can publish packages independently
126
+ - **Easier Code Review**: Changes are better organized
127
+
128
+ ## Questions and Answers
129
+
130
+ ### Q: Will this break my code?
131
+
132
+ **A**: No. The main `@plures/praxis` package will continue to re-export everything. Your existing imports will keep working.
133
+
134
+ ### Q: When will the migration be complete?
135
+
136
+ **A**: The migration is incremental. This PR is Phase 1 (documentation). Subsequent phases will happen over time with careful testing at each step.
137
+
138
+ ### Q: Do I need to do anything?
139
+
140
+ **A**: Not immediately. Once the migration is complete, you can optionally switch to granular imports for smaller bundles.
141
+
142
+ ### Q: What if something breaks?
143
+
144
+ **A**: Each phase is reversible. If issues arise, we can roll back to the previous state.
145
+
146
+ ## Review Checklist
147
+
148
+ - [ ] Review MONOREPO.md for accuracy and completeness
149
+ - [ ] Review package descriptions in README files
150
+ - [ ] Verify package.json files have correct dependencies
151
+ - [ ] Review migration plan for feasibility
152
+ - [ ] Approve moving forward with Phase 2
153
+
154
+ ## References
155
+
156
+ - [MONOREPO.md](./MONOREPO.md)
157
+ - [MIGRATION_GUIDE.md](./MIGRATION_GUIDE.md)
158
+ - [Decision Ledger Entry](./docs/decision-ledger/decisions/2026-02-01-monorepo-organization.md)
@@ -0,0 +1,28 @@
1
+ # Praxis 1.x Documentation Archive
2
+
3
+ This directory contains historical documentation from Praxis 1.x development.
4
+ These files are preserved for reference but are **not** part of the current 2.0 documentation.
5
+
6
+ For current documentation, see the [main docs](../../README.md) or the [project README](../../../README.md).
7
+
8
+ ## Archived Files
9
+
10
+ | File | Description |
11
+ |------|-------------|
12
+ | TASK_1_COMPLETE.md | TerminalNode implementation completion notes |
13
+ | TASK_1_SUMMARY.md | Task 1 completion summary |
14
+ | ValidationChecklist.md | Feature validation checklist |
15
+ | IMPLEMENTATION_COMPLETE.md | Integration enhancement completion notes |
16
+ | ELEVATION_SUMMARY.md | Framework elevation summary |
17
+ | FEATURE_SUMMARY.md | Core feature implementation summary |
18
+ | GOLDEN_PATH_IMPLEMENTATION.md | v0.2 golden path implementation |
19
+ | KNO_ENG_REFACTORING_SUMMARY.md | Knowledge engine extraction planning |
20
+ | CONVERSATIONS_IMPLEMENTATION.md | Conversations subsystem implementation |
21
+ | DECISION_LEDGER_IMPLEMENTATION.md | Decision ledger implementation notes |
22
+ | DECISION_LEDGER_SUMMARY.md | Decision ledger summary |
23
+ | INTEGRATION_ENHANCEMENT_SUMMARY.md | Integration enhancements |
24
+ | SVELTE_INTEGRATION_SUMMARY.md | GitHub-based monetization strategy summary |
25
+ | MONOREPO_SUMMARY.md | Monorepo organization summary |
26
+ | IMPLEMENTATION_SUMMARY.md | Overall implementation summary |
27
+ | IMPLEMENTATION.md | Implementation notes |
28
+ | VERSION_0.2.0_RELEASE_NOTES.md | v0.2.0 release notes |