@plures/praxis 1.2.12 → 1.2.41
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.
- package/README.md +63 -0
- package/dist/browser/{chunk-VOMLVI6V.js → chunk-BBP2F7TT.js} +70 -1
- package/dist/browser/{chunk-K377RW4V.js → chunk-FCEH7WMH.js} +1 -1
- package/dist/browser/{engine-YJZV4SLD.js → engine-65QDGCAN.js} +1 -1
- package/dist/browser/index.d.ts +104 -2
- package/dist/browser/index.js +181 -5
- package/dist/browser/integrations/svelte.d.ts +2 -2
- package/dist/browser/integrations/svelte.js +2 -2
- package/dist/browser/{reactive-engine.svelte-9aS0kTa8.d.ts → reactive-engine.svelte-Cqd8Mod2.d.ts} +56 -1
- package/dist/node/{chunk-PRPQO6R5.js → chunk-32YFEEML.js} +1 -1
- package/dist/node/{chunk-VOMLVI6V.js → chunk-BBP2F7TT.js} +70 -1
- package/dist/node/{chunk-5RH7UAQC.js → chunk-PTH6MD6P.js} +1 -0
- package/dist/node/cli/index.cjs +1553 -839
- package/dist/node/cli/index.js +39 -2
- package/dist/node/cloud/index.d.cts +1 -1
- package/dist/node/cloud/index.d.ts +1 -1
- package/dist/node/components/index.d.cts +2 -2
- package/dist/node/components/index.d.ts +2 -2
- package/dist/node/conversations-KQBXTP3N.js +596 -0
- package/dist/node/{engine-2DQBKBJC.js → engine-7CXQV6RC.js} +1 -1
- package/dist/node/index.cjs +408 -3
- package/dist/node/index.d.cts +308 -7
- package/dist/node/index.d.ts +308 -7
- package/dist/node/index.js +336 -6
- package/dist/node/integrations/svelte.cjs +70 -1
- package/dist/node/integrations/svelte.d.cts +3 -3
- package/dist/node/integrations/svelte.d.ts +3 -3
- package/dist/node/integrations/svelte.js +2 -2
- package/dist/node/{protocol-Qek7ebBl.d.ts → protocol-BocKczNv.d.cts} +1 -1
- package/dist/node/{protocol-Qek7ebBl.d.cts → protocol-BocKczNv.d.ts} +1 -1
- package/dist/node/{reactive-engine.svelte-CRNqHlbv.d.ts → reactive-engine.svelte-CGe8SpVE.d.cts} +57 -2
- package/dist/node/{reactive-engine.svelte-BFIZfawz.d.cts → reactive-engine.svelte-D-xTDxT5.d.ts} +57 -2
- package/dist/node/{terminal-adapter-B-UK_Vdz.d.ts → terminal-adapter-CvIvgTo4.d.ts} +1 -1
- package/dist/node/{terminal-adapter-BQSIF5bf.d.cts → terminal-adapter-Db-snPJ3.d.cts} +1 -1
- package/dist/node/{validate-CNHUULQE.js → validate-EN3M4FUR.js} +1 -1
- package/dist/node/{verify-KLJRXVJS.js → verify-7VZRP2WS.js} +2 -2
- package/docs/BOT_UPDATE_POLICY.md +125 -0
- package/docs/DOGFOODING_CHECKLIST.md +254 -0
- package/docs/DOGFOODING_INDEX.md +169 -0
- package/docs/DOGFOODING_QUICK_START.md +140 -0
- package/docs/KNO_ENG_EXTRACTION_PLAN.md +577 -0
- package/docs/PLURES_TOOLS_INVENTORY.md +170 -0
- package/docs/README.md +12 -0
- package/docs/TESTING_BOT_WORKFLOWS.md +154 -0
- package/docs/conversations/INTEGRATION_POINTS.md +719 -0
- package/docs/conversations/README.md +168 -0
- package/docs/core/extending-praxis-core.md +604 -0
- package/docs/core/praxis-core-api.md +385 -0
- package/docs/decision-ledger/contract-index.json +2 -2
- package/docs/decision-ledger/decisions/2026-02-01-monorepo-organization.md +130 -0
- package/docs/examples/DOGFOODING_WORKFLOW_EXAMPLE.md +295 -0
- package/docs/examples/README.md +41 -0
- package/docs/workflows/pr-overlap-guard.md +50 -0
- package/package.json +7 -2
- package/src/__tests__/chronicle.test.ts +512 -0
- package/src/__tests__/conversations.test.ts +312 -0
- package/src/__tests__/edge-cases.test.ts +1 -1
- package/src/__tests__/engine-dx.test.ts +355 -0
- package/src/cli/commands/conversations.ts +252 -0
- package/src/cli/index.ts +73 -0
- package/src/conversations/README.md +230 -0
- package/src/conversations/candidate.schema.json +123 -0
- package/src/conversations/candidates.ts +114 -0
- package/src/conversations/capture.ts +56 -0
- package/src/conversations/classify.ts +110 -0
- package/src/conversations/conversation.schema.json +106 -0
- package/src/conversations/emitters/fs.ts +65 -0
- package/src/conversations/emitters/github.ts +115 -0
- package/src/conversations/gate.ts +102 -0
- package/src/conversations/index.ts +28 -0
- package/src/conversations/normalize.ts +51 -0
- package/src/conversations/redact.ts +57 -0
- package/src/conversations/types.ts +96 -0
- package/src/core/chronicle/chronicle.ts +227 -0
- package/src/core/chronicle/context.ts +80 -0
- package/src/core/chronicle/index.ts +53 -0
- package/src/core/chronicle/mcp.ts +135 -0
- package/src/core/chronicle/types.ts +61 -0
- package/src/core/engine.ts +99 -1
- package/src/core/pluresdb/index.ts +22 -0
- package/src/core/pluresdb/store.ts +162 -5
- package/src/core/rules.ts +12 -0
- package/src/dsl/index.ts +6 -0
- package/src/index.ts +18 -0
- package/src/integrations/pluresdb.ts +22 -0
|
@@ -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
|