x-ipe 1.0.24__py3-none-any.whl → 1.0.25__py3-none-any.whl
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.
- x_ipe/app.py +25 -3
- x_ipe/handlers/terminal_handlers.py +6 -0
- x_ipe/handlers/voice_handlers.py +5 -0
- x_ipe/resources/copilot-instructions.md +19 -6
- x_ipe/resources/skills/lesson-learned/SKILL.md +208 -0
- x_ipe/resources/skills/lesson-learned/references/examples.md +238 -0
- x_ipe/resources/skills/project-quality-board-management/SKILL.md +135 -298
- x_ipe/resources/skills/project-quality-board-management/references/evaluation-principles.md +213 -0
- x_ipe/resources/skills/project-quality-board-management/references/evaluation-procedures.md +214 -0
- x_ipe/resources/skills/project-quality-board-management/templates/quality-report.md +70 -18
- x_ipe/resources/skills/task-execution-guideline/SKILL.md +2 -2
- x_ipe/resources/skills/task-execution-guideline/templates/task-record.yaml +1 -1
- x_ipe/resources/skills/task-type-code-implementation/SKILL.md +72 -270
- x_ipe/resources/skills/task-type-code-implementation/references/implementation-guidelines.md +432 -0
- x_ipe/resources/skills/task-type-code-refactor-v2/SKILL.md +127 -353
- x_ipe/resources/skills/task-type-code-refactor-v2/references/refactoring-techniques.md +373 -0
- x_ipe/resources/skills/task-type-feature-breakdown/SKILL.md +31 -243
- x_ipe/resources/skills/task-type-feature-breakdown/references/breakdown-guidelines.md +330 -0
- x_ipe/resources/skills/task-type-feature-refinement/SKILL.md +27 -180
- x_ipe/resources/skills/task-type-feature-refinement/references/specification-writing-guide.md +267 -0
- x_ipe/resources/skills/task-type-idea-mockup/SKILL.md +38 -276
- x_ipe/resources/skills/task-type-idea-mockup/references/mockup-guidelines.md +299 -0
- x_ipe/resources/skills/task-type-idea-to-architecture/SKILL.md +20 -218
- x_ipe/resources/skills/task-type-idea-to-architecture/references/architecture-patterns.md +342 -0
- x_ipe/resources/skills/task-type-ideation/SKILL.md +10 -266
- x_ipe/resources/skills/task-type-ideation/references/folder-naming-guide.md +55 -0
- x_ipe/resources/skills/task-type-ideation/references/tool-usage-guide.md +236 -0
- x_ipe/resources/skills/task-type-ideation-v2/SKILL.md +488 -0
- x_ipe/resources/skills/task-type-ideation-v2/references/examples.md +377 -0
- x_ipe/resources/skills/task-type-ideation-v2/references/folder-naming-guide.md +74 -0
- x_ipe/resources/skills/task-type-ideation-v2/references/tool-usage-guide.md +145 -0
- x_ipe/resources/skills/task-type-ideation-v2/references/visualization-guide.md +160 -0
- x_ipe/resources/skills/task-type-ideation-v2/templates/idea-summary.md +86 -0
- x_ipe/resources/skills/task-type-refactoring-analysis/SKILL.md +83 -145
- x_ipe/resources/skills/task-type-refactoring-analysis/references/output-schema.md +172 -0
- x_ipe/resources/skills/task-type-technical-design/SKILL.md +28 -214
- x_ipe/resources/skills/task-type-technical-design/references/design-templates.md +422 -0
- x_ipe/resources/skills/task-type-test-generation/SKILL.md +47 -332
- x_ipe/resources/skills/task-type-test-generation/references/test-patterns.md +368 -0
- x_ipe/resources/skills/tool-tracing-creator/SKILL.md +312 -0
- x_ipe/resources/skills/tool-tracing-creator/references/examples.md +324 -0
- x_ipe/resources/skills/tool-tracing-instrumentation/SKILL.md +373 -0
- x_ipe/resources/skills/tool-tracing-instrumentation/references/examples.md +264 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/SKILL.md +486 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/10. example-gate-conditions.md +73 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/11. reference-quality-standards.md +127 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/2. reference-section-order.md +127 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/3. example-step-based-code-review.md +84 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/4. example-step-based-feature-implementation.md +113 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/5. example-function-based-validation.md +73 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/6. example-function-based-analysis.md +94 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/7. example-task-io-code-implementation.md +36 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/8. example-structured-summary.md +43 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/9. example-dor-dod.md +77 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/examples.md +429 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/references/skill-general-guidelines-v2.md +611 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-meta.md +153 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-task-based.md +324 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-task-category.md +109 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/skill-meta-x-ipe-tool.md +205 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-meta.md +334 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-task-based.md +279 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-tool.md +175 -0
- x_ipe/resources/skills/x-ipe-skill-creator-v3/templates/x-ipe-workflow-orchestration.md +329 -0
- x_ipe/resources/skills/x-ipe-task-based-ideation/SKILL.md +487 -0
- x_ipe/resources/skills/x-ipe-task-based-ideation/references/examples.md +377 -0
- x_ipe/resources/skills/x-ipe-task-based-ideation/references/folder-naming-guide.md +74 -0
- x_ipe/resources/skills/x-ipe-task-based-ideation/references/tool-usage-guide.md +145 -0
- x_ipe/resources/skills/x-ipe-task-based-ideation/references/visualization-guide.md +160 -0
- x_ipe/resources/skills/x-ipe-task-based-ideation/templates/idea-summary.md +86 -0
- x_ipe/routes/__init__.py +2 -0
- x_ipe/routes/ideas_routes.py +17 -0
- x_ipe/routes/kb_routes.py +80 -0
- x_ipe/routes/main_routes.py +18 -0
- x_ipe/routes/project_routes.py +7 -0
- x_ipe/routes/proxy_routes.py +2 -0
- x_ipe/routes/quality_evaluation_routes.py +193 -0
- x_ipe/routes/settings_routes.py +6 -0
- x_ipe/routes/tools_routes.py +6 -0
- x_ipe/routes/tracing_routes.py +232 -0
- x_ipe/routes/uiux_feedback_routes.py +30 -0
- x_ipe/services/__init__.py +5 -0
- x_ipe/services/config_service.py +6 -0
- x_ipe/services/file_service.py +20 -0
- x_ipe/services/homepage_service.py +160 -0
- x_ipe/services/ideas_service.py +19 -0
- x_ipe/services/kb_service.py +378 -0
- x_ipe/services/proxy_service.py +4 -0
- x_ipe/services/settings_service.py +13 -0
- x_ipe/services/skills_service.py +4 -0
- x_ipe/services/terminal_service.py +24 -0
- x_ipe/services/themes_service.py +4 -0
- x_ipe/services/tools_config_service.py +4 -0
- x_ipe/services/tracing_service.py +333 -0
- x_ipe/services/uiux_feedback_service.py +32 -0
- x_ipe/services/voice_input_service_v2.py +11 -0
- x_ipe/static/css/base.css +7 -0
- x_ipe/static/css/homepage-infinity.css +330 -0
- x_ipe/static/css/kb-core.css +301 -0
- x_ipe/static/css/quality-evaluation.css +345 -0
- x_ipe/static/css/sidebar.css +14 -4
- x_ipe/static/css/terminal.css +1 -0
- x_ipe/static/css/tracing-dashboard.css +796 -0
- x_ipe/static/css/workplace.css +20 -0
- x_ipe/static/img/homepage-infinity-loop.png +0 -0
- x_ipe/static/js/features/homepage-infinity.js +314 -0
- x_ipe/static/js/features/kb-core.js +371 -0
- x_ipe/static/js/features/quality-evaluation.js +387 -0
- x_ipe/static/js/features/sidebar.js +255 -12
- x_ipe/static/js/features/tracing-dashboard.js +855 -0
- x_ipe/static/js/features/tracing-graph.js +1031 -0
- x_ipe/static/js/features/tree-search.js +6 -2
- x_ipe/static/js/features/workplace.js +200 -6
- x_ipe/static/js/init.js +76 -0
- x_ipe/static/js/uiux-feedback.js +18 -2
- x_ipe/templates/base.html +19 -0
- x_ipe/templates/index.html +7 -1
- x_ipe/templates/knowledge-base.html +110 -0
- x_ipe/templates/workplace.html +4 -0
- x_ipe/tracing/__init__.py +37 -0
- x_ipe/tracing/buffer.py +135 -0
- x_ipe/tracing/context.py +125 -0
- x_ipe/tracing/decorator.py +288 -0
- x_ipe/tracing/middleware.py +197 -0
- x_ipe/tracing/parser.py +235 -0
- x_ipe/tracing/redactor.py +111 -0
- x_ipe/tracing/writer.py +122 -0
- {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/METADATA +2 -2
- {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/RECORD +132 -62
- x_ipe/resources/skills/x-ipe-skill-creator/SKILL.md +0 -329
- x_ipe/resources/skills/x-ipe-skill-creator/references/output-patterns.md +0 -169
- x_ipe/resources/skills/x-ipe-skill-creator/references/skill-structure.md +0 -162
- x_ipe/resources/skills/x-ipe-skill-creator/references/workflows.md +0 -110
- x_ipe/resources/skills/x-ipe-skill-creator/templates/references/examples.md +0 -113
- x_ipe/resources/skills/x-ipe-skill-creator/templates/skill-category-skill.md +0 -296
- x_ipe/resources/skills/x-ipe-skill-creator/templates/task-type-skill.md +0 -269
- {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/WHEEL +0 -0
- {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/entry_points.txt +0 -0
- {x_ipe-1.0.24.dist-info → x_ipe-1.0.25.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# Tracing Instrumentation Examples
|
|
2
|
+
|
|
3
|
+
## Example 1: Single File Instrumentation
|
|
4
|
+
|
|
5
|
+
### User Request
|
|
6
|
+
```
|
|
7
|
+
Add tracing to src/x_ipe/services/ideas_service.py
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
### Agent Analysis
|
|
11
|
+
```markdown
|
|
12
|
+
## Proposed Tracing Additions
|
|
13
|
+
|
|
14
|
+
### File: src/x_ipe/services/ideas_service.py
|
|
15
|
+
|
|
16
|
+
| Function | Line | Level | Redact | Action |
|
|
17
|
+
|----------|------|-------|--------|--------|
|
|
18
|
+
| `get_all_ideas()` | 25 | INFO | - | Add |
|
|
19
|
+
| `get_idea_by_id(id)` | 35 | INFO | - | Add |
|
|
20
|
+
| `create_idea(name, content)` | 48 | INFO | - | Add |
|
|
21
|
+
| `update_idea(id, data)` | 65 | INFO | - | Add |
|
|
22
|
+
| `delete_idea(id)` | 82 | INFO | - | Add |
|
|
23
|
+
| `_validate_idea_data(data)` | 95 | DEBUG | - | Add |
|
|
24
|
+
| `_sanitize_content(content)` | 108 | DEBUG | - | Add |
|
|
25
|
+
|
|
26
|
+
### Summary
|
|
27
|
+
|
|
28
|
+
| Metric | Count |
|
|
29
|
+
|--------|-------|
|
|
30
|
+
| Files analyzed | 1 |
|
|
31
|
+
| Total functions | 7 |
|
|
32
|
+
| To instrument | 7 |
|
|
33
|
+
| Already traced | 0 |
|
|
34
|
+
|
|
35
|
+
Proceed? [Yes/No]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### User Response
|
|
39
|
+
```
|
|
40
|
+
Yes
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Agent Action
|
|
44
|
+
1. Add import: `from x_ipe.tracing import x_ipe_tracing`
|
|
45
|
+
2. Add decorators to all 7 functions
|
|
46
|
+
|
|
47
|
+
### Result
|
|
48
|
+
```markdown
|
|
49
|
+
## Instrumentation Complete ✅
|
|
50
|
+
|
|
51
|
+
- Files modified: 1
|
|
52
|
+
- Functions instrumented: 7
|
|
53
|
+
- Import statements added: 1
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Example 2: Auth Service with Sensitive Params
|
|
59
|
+
|
|
60
|
+
### User Request
|
|
61
|
+
```
|
|
62
|
+
Add tracing to src/x_ipe/services/auth_service.py
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Agent Analysis
|
|
66
|
+
```markdown
|
|
67
|
+
## Proposed Tracing Additions
|
|
68
|
+
|
|
69
|
+
### File: src/x_ipe/services/auth_service.py
|
|
70
|
+
|
|
71
|
+
| Function | Line | Level | Redact | Action |
|
|
72
|
+
|----------|------|-------|--------|--------|
|
|
73
|
+
| `login(email, password)` | 20 | INFO | password | Add |
|
|
74
|
+
| `logout(session_id)` | 45 | INFO | - | Add |
|
|
75
|
+
| `validate_token(token)` | 60 | INFO | token | Add |
|
|
76
|
+
| `refresh_token(refresh_token)` | 78 | INFO | refresh_token | Add |
|
|
77
|
+
| `reset_password(user_id, new_password)` | 95 | INFO | new_password | Add |
|
|
78
|
+
| `_hash_password(password)` | 115 | DEBUG | password | Add |
|
|
79
|
+
| `_generate_token(user_id, secret_key)` | 125 | DEBUG | secret_key | Add |
|
|
80
|
+
|
|
81
|
+
### Summary
|
|
82
|
+
|
|
83
|
+
| Metric | Count |
|
|
84
|
+
|--------|-------|
|
|
85
|
+
| Functions with redaction | 6 |
|
|
86
|
+
| Total functions | 7 |
|
|
87
|
+
|
|
88
|
+
Proceed? [Yes/No]
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### User Response
|
|
92
|
+
```
|
|
93
|
+
Yes
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Resulting Code
|
|
97
|
+
```python
|
|
98
|
+
from x_ipe.tracing import x_ipe_tracing
|
|
99
|
+
|
|
100
|
+
class AuthService:
|
|
101
|
+
@x_ipe_tracing(level="INFO", redact=["password"])
|
|
102
|
+
def login(self, email: str, password: str) -> dict:
|
|
103
|
+
...
|
|
104
|
+
|
|
105
|
+
@x_ipe_tracing(level="INFO")
|
|
106
|
+
def logout(self, session_id: str) -> bool:
|
|
107
|
+
...
|
|
108
|
+
|
|
109
|
+
@x_ipe_tracing(level="INFO", redact=["token"])
|
|
110
|
+
def validate_token(self, token: str) -> dict:
|
|
111
|
+
...
|
|
112
|
+
|
|
113
|
+
@x_ipe_tracing(level="DEBUG", redact=["password"])
|
|
114
|
+
def _hash_password(self, password: str) -> str:
|
|
115
|
+
...
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Example 3: Module Batch Processing
|
|
121
|
+
|
|
122
|
+
### User Request
|
|
123
|
+
```
|
|
124
|
+
Add tracing to src/x_ipe/routes/
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Agent Analysis
|
|
128
|
+
```markdown
|
|
129
|
+
## Proposed Tracing Additions
|
|
130
|
+
|
|
131
|
+
### File: src/x_ipe/routes/ideas_routes.py
|
|
132
|
+
|
|
133
|
+
| Function | Line | Level | Redact | Action |
|
|
134
|
+
|----------|------|-------|--------|--------|
|
|
135
|
+
| `list_ideas()` | 15 | INFO | - | Add |
|
|
136
|
+
| `get_idea(id)` | 28 | INFO | - | Add |
|
|
137
|
+
| `create_idea()` | 42 | INFO | - | Add |
|
|
138
|
+
| `update_idea(id)` | 58 | INFO | - | Add |
|
|
139
|
+
| `delete_idea(id)` | 72 | INFO | - | Add |
|
|
140
|
+
|
|
141
|
+
### File: src/x_ipe/routes/tracing_routes.py
|
|
142
|
+
|
|
143
|
+
| Function | Line | Level | Redact | Action |
|
|
144
|
+
|----------|------|-------|--------|--------|
|
|
145
|
+
| `get_status()` | 28 | INFO | - | Add |
|
|
146
|
+
| `start_tracing()` | 51 | INFO | - | Add |
|
|
147
|
+
| `stop_tracing()` | 83 | INFO | - | Add |
|
|
148
|
+
| `list_logs()` | 100 | INFO | - | Add |
|
|
149
|
+
| `delete_logs()` | 122 | INFO | - | Add |
|
|
150
|
+
| `get_trace(trace_id)` | 137 | INFO | - | Add |
|
|
151
|
+
|
|
152
|
+
### File: src/x_ipe/routes/health_routes.py
|
|
153
|
+
|
|
154
|
+
| Function | Line | Level | Redact | Action |
|
|
155
|
+
|----------|------|-------|--------|--------|
|
|
156
|
+
| `health_check()` | 10 | INFO | - | Add |
|
|
157
|
+
| `readiness()` | 18 | INFO | - | Add |
|
|
158
|
+
|
|
159
|
+
### Summary
|
|
160
|
+
|
|
161
|
+
| Metric | Count |
|
|
162
|
+
|--------|-------|
|
|
163
|
+
| Files analyzed | 3 |
|
|
164
|
+
| Total functions | 13 |
|
|
165
|
+
| To instrument | 13 |
|
|
166
|
+
|
|
167
|
+
Proceed? [Yes/No/Exclude specific]
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### User Response
|
|
171
|
+
```
|
|
172
|
+
Exclude: health_check, readiness
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Agent Action
|
|
176
|
+
Skip health_routes.py functions, instrument remaining 11
|
|
177
|
+
|
|
178
|
+
### Result
|
|
179
|
+
```markdown
|
|
180
|
+
## Instrumentation Complete ✅
|
|
181
|
+
|
|
182
|
+
| Metric | Count |
|
|
183
|
+
|--------|-------|
|
|
184
|
+
| Files modified | 2 |
|
|
185
|
+
| Functions instrumented | 11 |
|
|
186
|
+
| Functions excluded | 2 |
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Example 4: Function Already Traced
|
|
192
|
+
|
|
193
|
+
### User Request
|
|
194
|
+
```
|
|
195
|
+
Add tracing to src/x_ipe/services/tracing_service.py
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Agent Analysis
|
|
199
|
+
```markdown
|
|
200
|
+
## Proposed Tracing Additions
|
|
201
|
+
|
|
202
|
+
### File: src/x_ipe/services/tracing_service.py
|
|
203
|
+
|
|
204
|
+
| Function | Line | Level | Redact | Action |
|
|
205
|
+
|----------|------|-------|--------|--------|
|
|
206
|
+
| `get_config()` | 50 | INFO | - | Add |
|
|
207
|
+
| `is_active()` | 71 | INFO | - | Add |
|
|
208
|
+
| `start(duration_minutes)` | 100 | - | - | Skip (already traced) |
|
|
209
|
+
| `stop()` | 125 | - | - | Skip (already traced) |
|
|
210
|
+
| `list_logs()` | 141 | INFO | - | Add |
|
|
211
|
+
| `cleanup_on_startup()` | 178 | INFO | - | Add |
|
|
212
|
+
| `get_trace(trace_id)` | 221 | INFO | - | Add |
|
|
213
|
+
|
|
214
|
+
### Summary
|
|
215
|
+
|
|
216
|
+
| Metric | Count |
|
|
217
|
+
|--------|-------|
|
|
218
|
+
| To instrument | 5 |
|
|
219
|
+
| Already traced | 2 |
|
|
220
|
+
|
|
221
|
+
Proceed? [Yes/No]
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Example 5: Dry Run Mode
|
|
227
|
+
|
|
228
|
+
### User Request
|
|
229
|
+
```
|
|
230
|
+
Add tracing to src/x_ipe/services/ --dry-run
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Agent Analysis
|
|
234
|
+
Shows proposal as normal, but ends with:
|
|
235
|
+
|
|
236
|
+
```markdown
|
|
237
|
+
### Dry Run Mode
|
|
238
|
+
|
|
239
|
+
No changes were made. This was a preview of proposed instrumentation.
|
|
240
|
+
|
|
241
|
+
To apply changes, run without `--dry-run` flag.
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Common Patterns
|
|
247
|
+
|
|
248
|
+
### Pattern: Route Files
|
|
249
|
+
- All functions get `level="INFO"` (public API endpoints)
|
|
250
|
+
- Check for auth-related params
|
|
251
|
+
|
|
252
|
+
### Pattern: Service Files
|
|
253
|
+
- Public methods: `level="INFO"`
|
|
254
|
+
- Protected methods (`_prefix`): `level="DEBUG"`
|
|
255
|
+
- Always check for sensitive params
|
|
256
|
+
|
|
257
|
+
### Pattern: Utils/Helpers
|
|
258
|
+
- Default to `level="DEBUG"` (internal details)
|
|
259
|
+
- Lower priority for tracing
|
|
260
|
+
|
|
261
|
+
### Pattern: Class Methods
|
|
262
|
+
- Trace instance methods normally
|
|
263
|
+
- Skip `__init__`, `__str__`, `__repr__` etc.
|
|
264
|
+
- Include `@staticmethod` and `@classmethod`
|