@compilr-dev/cli 0.6.1 → 0.6.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/README.md +12 -0
  3. package/dist/commands-v2/handlers/index.js +2 -2
  4. package/dist/compilr-diff-companion.vsix +0 -0
  5. package/dist/index.js +5 -2
  6. package/dist/utils/update-checker.d.ts +6 -1
  7. package/dist/utils/update-checker.js +16 -1
  8. package/package.json +5 -4
  9. package/dist/.tsbuildinfo.app +0 -1
  10. package/dist/.tsbuildinfo.data +0 -1
  11. package/dist/.tsbuildinfo.domain +0 -1
  12. package/dist/.tsbuildinfo.foundation +0 -1
  13. package/dist/guide/guide-content.d.ts +0 -23
  14. package/dist/guide/guide-content.js +0 -196
  15. package/dist/multi-agent/activity.d.ts +0 -21
  16. package/dist/multi-agent/activity.js +0 -34
  17. package/dist/multi-agent/agent-selection.d.ts +0 -55
  18. package/dist/multi-agent/agent-selection.js +0 -90
  19. package/dist/multi-agent/artifacts.d.ts +0 -197
  20. package/dist/multi-agent/artifacts.js +0 -379
  21. package/dist/multi-agent/collision-utils.d.ts +0 -16
  22. package/dist/multi-agent/collision-utils.js +0 -28
  23. package/dist/multi-agent/context-resolver.d.ts +0 -97
  24. package/dist/multi-agent/context-resolver.js +0 -316
  25. package/dist/multi-agent/mention-parser.d.ts +0 -64
  26. package/dist/multi-agent/mention-parser.js +0 -146
  27. package/dist/multi-agent/shared-context.d.ts +0 -293
  28. package/dist/multi-agent/shared-context.js +0 -671
  29. package/dist/multi-agent/skill-requirements.d.ts +0 -66
  30. package/dist/multi-agent/skill-requirements.js +0 -178
  31. package/dist/multi-agent/task-assignment.d.ts +0 -69
  32. package/dist/multi-agent/task-assignment.js +0 -123
  33. package/dist/multi-agent/task-suggestion.d.ts +0 -31
  34. package/dist/multi-agent/task-suggestion.js +0 -72
  35. package/dist/multi-agent/team-agent.d.ts +0 -201
  36. package/dist/multi-agent/team-agent.js +0 -488
  37. package/dist/multi-agent/team.d.ts +0 -286
  38. package/dist/multi-agent/team.js +0 -610
  39. package/dist/multi-agent/tool-config.d.ts +0 -110
  40. package/dist/multi-agent/tool-config.js +0 -661
  41. package/dist/multi-agent/types.d.ts +0 -211
  42. package/dist/multi-agent/types.js +0 -617
  43. package/dist/tools/guide-tool.d.ts +0 -12
  44. package/dist/tools/guide-tool.js +0 -59
@@ -1,110 +0,0 @@
1
- /**
2
- * Tool Configuration for Custom Agents
3
- *
4
- * Defines tool groups, profiles, and helpers for configuring
5
- * which tools a custom agent can access.
6
- *
7
- * IMPORTANT: Tool names are imported from tool-names.ts (single source of truth).
8
- * DO NOT hardcode tool name strings here - use TOOL_NAMES constants.
9
- */
10
- export type ToolProfile = 'full' | 'read-only' | 'developer' | 'security' | 'docs' | 'devops' | 'qa' | 'architect' | 'planner' | 'analyst' | 'custom';
11
- export interface ToolConfig {
12
- /** Tool profile (predefined set) */
13
- profile: ToolProfile;
14
- /** Custom groups when profile === 'custom' */
15
- customGroups?: string[];
16
- /** Override flag: force read-only on any profile */
17
- readOnly?: boolean;
18
- }
19
- export type ToolTier = 'direct' | 'meta';
20
- export interface ToolGroup {
21
- /** Human-readable label */
22
- label: string;
23
- /** Tool names in this group */
24
- tools: string[];
25
- /** Whether this group is read-only (no side effects) */
26
- readOnly: boolean;
27
- /** Tier: direct tools vs meta-registry tools */
28
- tier: ToolTier;
29
- /** Optional note about the group */
30
- note?: string;
31
- }
32
- /**
33
- * All tool groups organized by functionality.
34
- * These cover all ~50 tools in the CLI.
35
- *
36
- * Tool names use TOOL_NAMES constants for consistency.
37
- */
38
- export declare const TOOL_GROUPS: Record<string, ToolGroup>;
39
- /**
40
- * Predefined tool profiles mapping profile name to included groups.
41
- */
42
- export declare const TOOL_PROFILES: Record<ToolProfile, string[]>;
43
- export interface ProfileInfo {
44
- label: string;
45
- description: string;
46
- isReadOnly: boolean;
47
- }
48
- export declare const PROFILE_INFO: Record<ToolProfile, ProfileInfo>;
49
- /**
50
- * Get all tool names for a given profile.
51
- *
52
- * @param profile - The tool profile
53
- * @param customGroups - Custom groups (when profile is 'custom')
54
- * @returns Array of tool names
55
- */
56
- export declare function getToolsForProfile(profile: ToolProfile, customGroups?: string[]): string[];
57
- /**
58
- * Get all group IDs for a profile.
59
- */
60
- export declare function getGroupsForProfile(profile: ToolProfile): string[];
61
- /**
62
- * Get the profile that best matches a set of tools.
63
- * Used for displaying current config in UI.
64
- */
65
- export declare function detectProfileFromTools(tools: string[]): ToolProfile;
66
- /**
67
- * Check if a profile only includes read-only groups.
68
- */
69
- export declare function isProfileReadOnly(profile: ToolProfile, customGroups?: string[]): boolean;
70
- /**
71
- * Get all available group IDs.
72
- */
73
- export declare function getAllGroupIds(): string[];
74
- /**
75
- * Get group info by ID.
76
- */
77
- export declare function getGroupInfo(groupId: string): ToolGroup | undefined;
78
- /**
79
- * Get groups organized by tier.
80
- */
81
- export declare function getGroupsByTier(): {
82
- direct: string[];
83
- meta: string[];
84
- };
85
- /**
86
- * Create a default tool config (full access).
87
- */
88
- export declare function createDefaultToolConfig(): ToolConfig;
89
- /**
90
- * Validate a tool config.
91
- */
92
- export declare function validateToolConfig(config: Partial<ToolConfig>): {
93
- valid: boolean;
94
- error?: string;
95
- };
96
- /**
97
- * Generate self-awareness text for system prompt.
98
- * Tells the agent about its tool limitations.
99
- */
100
- export declare function generateToolAwarenessPrompt(config: ToolConfig): string;
101
- /**
102
- * Generate delegation guidance for the coordinator.
103
- * Explains how to use the delegate tool effectively.
104
- */
105
- export declare function generateCoordinatorGuidance(): string;
106
- /**
107
- * Generate delegation suggestion guidance for specialists.
108
- * Explains how to suggest other specialists when appropriate.
109
- */
110
- export declare function generateSpecialistGuidance(role: string): string;