@compilr-dev/sdk 0.29.5 → 0.29.6

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.
@@ -25,5 +25,4 @@
25
25
  * ```
26
26
  */
27
27
  export type { ActionContext, ActionDefinition } from './types.js';
28
- export { ACTION_REGISTRY, getActionsForContext, getActionById } from './registry.js';
29
- export { resolveActionPrompt, buildContextSummary, getSuggestedRole } from './resolver.js';
28
+ export { resolveActionPrompt, buildContextSummary } from './resolver.js';
@@ -25,6 +25,14 @@
25
25
  * ```
26
26
  */
27
27
  // Registry
28
- export { ACTION_REGISTRY, getActionsForContext, getActionById } from './registry.js';
28
+ /*
29
+ ⚠️ ACTION_REGISTRY IS GONE — superseded, not merely unused. `MACRO_META_REGISTRY` replaced it
30
+ during the macro rename and is a strict superset (55 entries against 14, every id present). The
31
+ old one kept an IPC handler and a preload binding alive that nothing called, which made it look
32
+ like the action source and cost a wrong assumption in the Projects plan.
33
+
34
+ `resolveActionPrompt` never read it: it resolves by skill NAME from the array it is given, so
35
+ the live path was never coupled to the dead one.
36
+ */
29
37
  // Resolver
30
- export { resolveActionPrompt, buildContextSummary, getSuggestedRole } from './resolver.js';
38
+ export { resolveActionPrompt, buildContextSummary } from './resolver.js';
@@ -23,7 +23,3 @@ export declare function resolveActionPrompt(actionId: string, context: ActionCon
23
23
  * Used by the ActionCard component to show a brief description.
24
24
  */
25
25
  export declare function buildContextSummary(context: ActionContext): string;
26
- /**
27
- * Get the suggested agent role for an action.
28
- */
29
- export declare function getSuggestedRole(actionId: string): string | undefined;
@@ -7,7 +7,6 @@
7
7
  *
8
8
  * Used by both CLI and desktop to turn user actions into agent prompts.
9
9
  */
10
- import { getActionById } from './registry.js';
11
10
  /**
12
11
  * Resolve an action + context into a final prompt for the agent.
13
12
  *
@@ -99,9 +98,3 @@ export function buildContextSummary(context) {
99
98
  }
100
99
  return '';
101
100
  }
102
- /**
103
- * Get the suggested agent role for an action.
104
- */
105
- export function getSuggestedRole(actionId) {
106
- return getActionById(actionId)?.suggestedRole;
107
- }
package/dist/index.d.ts CHANGED
@@ -87,7 +87,7 @@ export type { MacroListEntry, BuildMacroListOptions } from './skills/index.js';
87
87
  export { generateSkillCatalog, toCatalogEntry, createLoadSkillTool } from './skills/index.js';
88
88
  export type { SkillCatalogEntry, SkillSource } from './skills/index.js';
89
89
  export { platformMacros, designMacro, sketchMacro, prdMacro, refineMacro, refineItemMacro, architectureMacro, sessionNotesMacro, buildMacro, scaffoldMacro, outlineMacro, literatureReviewMacro, draftSectionMacro, peerReviewMacro, researchScaffoldMacro, businessVisionMacro, marketAnalysisMacro, competitorAnalysisMacro, financialModelMacro, pitchOutlineMacro, businessReviewMacro, brandSetupMacro, contentStrategyMacro, contentCalendarMacro, createContentMacro, contentReviewMacro, curriculumDesignMacro, lessonPlanMacro, assessmentDesignMacro, courseReviewMacro, bookOutlineMacro, characterDesignMacro, plotThreadsMacro, sceneBreakdownMacro, bookReviewMacro, } from './skills/index.js';
90
- export { ACTION_REGISTRY, getActionsForContext, getActionById, resolveActionPrompt, buildContextSummary, getSuggestedRole, } from './actions/index.js';
90
+ export { resolveActionPrompt, buildContextSummary } from './actions/index.js';
91
91
  export type { ActionContext, ActionDefinition } from './actions/index.js';
92
92
  export { PROJECT_TYPES, getProjectTypeConfig, getEnrichedProjectTypeConfig, getProjectTypesByCategory, generalConfig, softwareConfig, researchConfig, businessPlanConfig, contentConfig, techDocsConfig, courseConfig, MACRO_META_REGISTRY, resolveActionMeta, getRelevantMacros, getMacroMeta, getAllMacroMeta, } from './project-types/index.js';
93
93
  export type { ActionMeta, MacroMeta, MacroCategory, MacroCapabilities, } from './project-types/index.js';
package/dist/index.js CHANGED
@@ -166,7 +166,7 @@ export { platformMacros, designMacro, sketchMacro, prdMacro, refineMacro, refine
166
166
  // =============================================================================
167
167
  // Contextual Actions (skill invocations with context)
168
168
  // =============================================================================
169
- export { ACTION_REGISTRY, getActionsForContext, getActionById, resolveActionPrompt, buildContextSummary, getSuggestedRole, } from './actions/index.js';
169
+ export { resolveActionPrompt, buildContextSummary } from './actions/index.js';
170
170
  // =============================================================================
171
171
  // Project Types
172
172
  // =============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/sdk",
3
- "version": "0.29.5",
3
+ "version": "0.29.6",
4
4
  "description": "Universal agent runtime for building AI-powered applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,17 +0,0 @@
1
- /**
2
- * Action Registry — Defines which actions are available and where.
3
- *
4
- * Each action maps to a skill (from platformMacros/builtinSkills)
5
- * but adds UI metadata: icon, label, category, applicable contexts,
6
- * and suggested agent role.
7
- */
8
- import type { ActionDefinition } from './types.js';
9
- export declare const ACTION_REGISTRY: ActionDefinition[];
10
- /**
11
- * Get actions applicable to a given context type.
12
- */
13
- export declare function getActionsForContext(contextType: 'project' | 'workitem' | 'document'): ActionDefinition[];
14
- /**
15
- * Get an action definition by ID.
16
- */
17
- export declare function getActionById(id: string): ActionDefinition | undefined;
@@ -1,161 +0,0 @@
1
- /**
2
- * Action Registry — Defines which actions are available and where.
3
- *
4
- * Each action maps to a skill (from platformMacros/builtinSkills)
5
- * but adds UI metadata: icon, label, category, applicable contexts,
6
- * and suggested agent role.
7
- */
8
- export const ACTION_REGISTRY = [
9
- // ─── Project-level actions ─────────────────────────────────────────────
10
- {
11
- id: 'design',
12
- label: 'Design App',
13
- description: 'Describe an idea, get a full application design',
14
- icon: 'Wand2',
15
- applicableTo: ['project'],
16
- category: 'design',
17
- // BA owns requirements: the 'ba' role (analyst profile) has both
18
- // backlog_write and documents, so it can complete the full /design action
19
- // (create work items + write the PRD). The architect profile lacks
20
- // backlog_write and cannot create the backlog.
21
- suggestedRole: 'ba',
22
- needsInput: true,
23
- inputPrompt: 'What would you like to design?',
24
- },
25
- {
26
- id: 'sketch',
27
- label: 'Quick Sketch',
28
- description: 'Quickly sketch out an idea or concept',
29
- icon: 'Pencil',
30
- applicableTo: ['project'],
31
- category: 'design',
32
- needsInput: true,
33
- inputPrompt: 'What would you like to sketch?',
34
- },
35
- {
36
- id: 'prd',
37
- label: 'Write PRD',
38
- description: 'Create a product requirements document',
39
- icon: 'FileText',
40
- applicableTo: ['project'],
41
- // PRD is artifact-authoring (requirements), grouped with design/architecture
42
- // rather than backlog-breakdown 'planning' (refine/refine-item).
43
- category: 'design',
44
- // Requirements work → Business Analyst, not PM. The 'ba' role (analyst
45
- // profile) is purpose-built for requirements gathering and has the
46
- // documents tools needed to author the PRD.
47
- suggestedRole: 'ba',
48
- },
49
- {
50
- id: 'architecture',
51
- label: 'Architecture',
52
- description: 'Design the system architecture',
53
- icon: 'Network',
54
- applicableTo: ['project'],
55
- category: 'design',
56
- suggestedRole: 'architect',
57
- },
58
- {
59
- id: 'scaffold',
60
- label: 'Scaffold',
61
- description: 'Generate project code from the app model',
62
- icon: 'Layers',
63
- applicableTo: ['project'],
64
- category: 'development',
65
- suggestedRole: 'developer',
66
- },
67
- {
68
- id: 'session-notes',
69
- label: 'Session Notes',
70
- description: 'Summarize what was accomplished in this session',
71
- icon: 'StickyNote',
72
- applicableTo: ['project'],
73
- category: 'documentation',
74
- },
75
- // ─── Work item actions ─────────────────────────────────────────────────
76
- {
77
- id: 'refine',
78
- label: 'Refine',
79
- description: 'Break down into smaller tasks',
80
- icon: 'RefreshCw',
81
- applicableTo: ['project', 'workitem'],
82
- category: 'planning',
83
- suggestedRole: 'pm',
84
- },
85
- {
86
- id: 'refine-item',
87
- label: 'Refine Item',
88
- description: 'Add detail and acceptance criteria to this item',
89
- icon: 'RefreshCw',
90
- applicableTo: ['workitem'],
91
- category: 'planning',
92
- suggestedRole: 'pm',
93
- },
94
- {
95
- id: 'build',
96
- label: 'Build',
97
- description: 'Implement this work item',
98
- icon: 'Hammer',
99
- applicableTo: ['workitem'],
100
- category: 'development',
101
- suggestedRole: 'developer',
102
- },
103
- {
104
- id: 'code-review',
105
- label: 'Code Review',
106
- description: 'Review code for quality and correctness',
107
- icon: 'Search',
108
- applicableTo: ['project', 'workitem'],
109
- category: 'development',
110
- suggestedRole: 'qa',
111
- },
112
- {
113
- id: 'debug',
114
- label: 'Debug',
115
- description: 'Debug an issue or error',
116
- icon: 'Bug',
117
- applicableTo: ['project', 'workitem'],
118
- category: 'development',
119
- suggestedRole: 'developer',
120
- },
121
- // ─── Document actions ──────────────────────────────────────────────────
122
- {
123
- id: 'explain',
124
- label: 'Explain',
125
- description: 'Explain this code or document',
126
- icon: 'BookOpen',
127
- applicableTo: ['document', 'workitem'],
128
- category: 'documentation',
129
- },
130
- // ─── Analysis actions ──────────────────────────────────────────────────
131
- {
132
- id: 'security-review',
133
- label: 'Security Review',
134
- description: 'Review for security vulnerabilities',
135
- icon: 'Shield',
136
- applicableTo: ['project'],
137
- category: 'analysis',
138
- suggestedRole: 'security',
139
- },
140
- {
141
- id: 'refactor',
142
- label: 'Refactor',
143
- description: 'Improve code quality without changing behavior',
144
- icon: 'Scissors',
145
- applicableTo: ['project', 'workitem'],
146
- category: 'development',
147
- suggestedRole: 'developer',
148
- },
149
- ];
150
- /**
151
- * Get actions applicable to a given context type.
152
- */
153
- export function getActionsForContext(contextType) {
154
- return ACTION_REGISTRY.filter((a) => a.applicableTo.includes(contextType));
155
- }
156
- /**
157
- * Get an action definition by ID.
158
- */
159
- export function getActionById(id) {
160
- return ACTION_REGISTRY.find((a) => a.id === id);
161
- }