@compilr-dev/sdk 0.5.0 → 0.5.2
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/dist/platform/types.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type WorkItemType = 'feature' | 'bug' | 'tech-debt' | 'chore';
|
|
|
19
19
|
export type WorkItemStatus = 'backlog' | 'in_progress' | 'completed' | 'skipped';
|
|
20
20
|
export type WorkItemPriority = 'critical' | 'high' | 'medium' | 'low';
|
|
21
21
|
export type GuidedStep = 'plan' | 'implement' | 'test' | 'commit' | 'review';
|
|
22
|
-
export type DocumentType = 'prd' | 'architecture' | 'design' | 'notes' | 'plan' | 'app-model';
|
|
22
|
+
export type DocumentType = 'prd' | 'architecture' | 'design' | 'notes' | 'plan' | 'app-model' | 'research-model';
|
|
23
23
|
export type PlanStatus = 'draft' | 'approved' | 'in_progress' | 'completed' | 'abandoned';
|
|
24
24
|
export interface Project {
|
|
25
25
|
id: number;
|
|
@@ -142,6 +142,7 @@ export const researchConfig = {
|
|
|
142
142
|
{ role: 'editor', label: 'Editor', description: 'Style, clarity, grammar, consistency' },
|
|
143
143
|
],
|
|
144
144
|
documentTemplates: [
|
|
145
|
+
{ type: 'research-model', label: 'Research Model', description: 'Paper structure, claims, and sources' },
|
|
145
146
|
{ type: 'outline', label: 'Outline', description: 'Paper structure and sections' },
|
|
146
147
|
{
|
|
147
148
|
type: 'literature-review',
|
|
@@ -155,6 +156,12 @@ export const researchConfig = {
|
|
|
155
156
|
],
|
|
156
157
|
projectActions: ['session-notes'],
|
|
157
158
|
workItemActions: ['explain'],
|
|
159
|
+
workItemLabels: {
|
|
160
|
+
feature: { short: 'SC', full: 'Section' },
|
|
161
|
+
bug: { short: 'RV', full: 'Revision' },
|
|
162
|
+
'tech-debt': { short: 'RF', full: 'Reference' },
|
|
163
|
+
chore: { short: 'TK', full: 'Task' },
|
|
164
|
+
},
|
|
158
165
|
systemPromptContext: 'This is an academic research project. The user is writing a research paper or thesis. Focus on academic rigor, proper citations, and structured argumentation.',
|
|
159
166
|
};
|
|
160
167
|
// =============================================================================
|
|
@@ -221,6 +228,12 @@ export const businessPlanConfig = {
|
|
|
221
228
|
],
|
|
222
229
|
projectActions: ['session-notes'],
|
|
223
230
|
workItemActions: ['explain'],
|
|
231
|
+
workItemLabels: {
|
|
232
|
+
feature: { short: 'ML', full: 'Milestone' },
|
|
233
|
+
bug: { short: 'IS', full: 'Issue' },
|
|
234
|
+
'tech-debt': { short: 'RS', full: 'Research' },
|
|
235
|
+
chore: { short: 'TK', full: 'Task' },
|
|
236
|
+
},
|
|
224
237
|
systemPromptContext: 'This is a business plan project. The user is developing a business plan or startup pitch. Focus on market analysis, financial viability, and clear communication.',
|
|
225
238
|
};
|
|
226
239
|
// =============================================================================
|
|
@@ -271,6 +284,12 @@ export const contentConfig = {
|
|
|
271
284
|
],
|
|
272
285
|
projectActions: ['session-notes'],
|
|
273
286
|
workItemActions: ['explain'],
|
|
287
|
+
workItemLabels: {
|
|
288
|
+
feature: { short: 'PC', full: 'Content Piece' },
|
|
289
|
+
bug: { short: 'FX', full: 'Fix' },
|
|
290
|
+
'tech-debt': { short: 'RS', full: 'Research' },
|
|
291
|
+
chore: { short: 'TK', full: 'Task' },
|
|
292
|
+
},
|
|
274
293
|
systemPromptContext: 'This is a content/marketing project. The user is creating articles, blog posts, or marketing content. Focus on engaging writing, SEO awareness, and brand consistency.',
|
|
275
294
|
};
|
|
276
295
|
// =============================================================================
|
|
@@ -321,6 +340,12 @@ export const techDocsConfig = {
|
|
|
321
340
|
],
|
|
322
341
|
projectActions: ['session-notes'],
|
|
323
342
|
workItemActions: ['explain'],
|
|
343
|
+
workItemLabels: {
|
|
344
|
+
feature: { short: 'PG', full: 'Page' },
|
|
345
|
+
bug: { short: 'FX', full: 'Fix' },
|
|
346
|
+
'tech-debt': { short: 'RF', full: 'Refactor' },
|
|
347
|
+
chore: { short: 'TK', full: 'Task' },
|
|
348
|
+
},
|
|
324
349
|
systemPromptContext: 'This is a technical documentation project. The user is writing documentation such as API references, user guides, or tutorials. Focus on clarity, accuracy, and developer experience.',
|
|
325
350
|
};
|
|
326
351
|
// =============================================================================
|
|
@@ -377,5 +402,11 @@ export const courseConfig = {
|
|
|
377
402
|
],
|
|
378
403
|
projectActions: ['session-notes'],
|
|
379
404
|
workItemActions: ['explain'],
|
|
405
|
+
workItemLabels: {
|
|
406
|
+
feature: { short: 'LS', full: 'Lesson' },
|
|
407
|
+
bug: { short: 'FX', full: 'Fix' },
|
|
408
|
+
'tech-debt': { short: 'RF', full: 'Refactor' },
|
|
409
|
+
chore: { short: 'TK', full: 'Task' },
|
|
410
|
+
},
|
|
380
411
|
systemPromptContext: 'This is an educational project. The user is creating a course or training material. Focus on clear explanations, progressive complexity, and effective learning design.',
|
|
381
412
|
};
|
|
@@ -63,6 +63,11 @@ export interface ProjectTypeConfig {
|
|
|
63
63
|
projectActions: string[];
|
|
64
64
|
/** Skills shown on work item action buttons */
|
|
65
65
|
workItemActions: string[];
|
|
66
|
+
/** Override display labels for work item types (e.g., "Section" instead of "Feature") */
|
|
67
|
+
workItemLabels?: Partial<Record<'feature' | 'bug' | 'tech-debt' | 'chore', {
|
|
68
|
+
short: string;
|
|
69
|
+
full: string;
|
|
70
|
+
}>>;
|
|
66
71
|
/** Context line injected into the system prompt */
|
|
67
72
|
systemPromptContext: string;
|
|
68
73
|
}
|