runwork 0.5.0 → 0.6.0

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 (116) hide show
  1. package/dist/agents/__tests__/claude-code-stats.test.d.ts +1 -0
  2. package/dist/agents/__tests__/claude-code-stats.test.js +153 -0
  3. package/dist/agents/__tests__/claude-desktop-stats.test.d.ts +1 -0
  4. package/dist/agents/__tests__/claude-desktop-stats.test.js +280 -0
  5. package/dist/agents/__tests__/codex-stats.test.d.ts +1 -0
  6. package/dist/agents/__tests__/codex-stats.test.js +262 -0
  7. package/dist/agents/__tests__/cursor-stats.test.d.ts +1 -0
  8. package/dist/agents/__tests__/cursor-stats.test.js +183 -0
  9. package/dist/agents/__tests__/graceful-degradation.test.d.ts +1 -0
  10. package/dist/agents/__tests__/graceful-degradation.test.js +123 -0
  11. package/dist/agents/__tests__/instruction-hint.test.d.ts +1 -0
  12. package/dist/agents/__tests__/instruction-hint.test.js +69 -0
  13. package/dist/agents/__tests__/intro-skill.test.d.ts +1 -0
  14. package/dist/agents/__tests__/intro-skill.test.js +135 -0
  15. package/dist/agents/__tests__/schema-validation.test.d.ts +1 -0
  16. package/dist/agents/__tests__/schema-validation.test.js +212 -0
  17. package/dist/agents/claude-code.d.ts +16 -1
  18. package/dist/agents/claude-code.js +344 -21
  19. package/dist/agents/claude-desktop.d.ts +10 -1
  20. package/dist/agents/claude-desktop.js +250 -8
  21. package/dist/agents/cline.d.ts +13 -0
  22. package/dist/agents/cline.js +88 -0
  23. package/dist/agents/codex.d.ts +7 -2
  24. package/dist/agents/codex.js +130 -18
  25. package/dist/agents/cursor.d.ts +6 -1
  26. package/dist/agents/cursor.js +164 -7
  27. package/dist/agents/detect.js +30 -7
  28. package/dist/agents/gemini.d.ts +6 -3
  29. package/dist/agents/gemini.js +57 -20
  30. package/dist/agents/generic-adapter.d.ts +23 -0
  31. package/dist/agents/generic-adapter.js +106 -0
  32. package/dist/agents/intro-skill.d.ts +36 -0
  33. package/dist/agents/intro-skill.js +358 -0
  34. package/dist/agents/registry.d.ts +53 -0
  35. package/dist/agents/registry.js +219 -0
  36. package/dist/agents/types.d.ts +44 -1
  37. package/dist/agents/types.js +11 -4
  38. package/dist/agents/utils/instruction-hint.d.ts +11 -0
  39. package/dist/agents/utils/instruction-hint.js +62 -0
  40. package/dist/agents/utils/json-config.js +3 -3
  41. package/dist/agents/windsurf.d.ts +2 -0
  42. package/dist/agents/windsurf.js +26 -9
  43. package/dist/api/client.d.ts +85 -2
  44. package/dist/api/client.js +40 -10
  45. package/dist/auth/__tests__/login-flow.test.d.ts +1 -0
  46. package/dist/auth/__tests__/login-flow.test.js +125 -0
  47. package/dist/auth/login-flow.d.ts +16 -0
  48. package/dist/auth/login-flow.js +101 -1
  49. package/dist/commands/clone.d.ts +9 -1
  50. package/dist/commands/clone.js +40 -12
  51. package/dist/commands/deploy.js +27 -4
  52. package/dist/commands/dev.js +35 -1
  53. package/dist/commands/doctor.d.ts +2 -0
  54. package/dist/commands/doctor.js +82 -0
  55. package/dist/commands/info.js +6 -2
  56. package/dist/commands/init.d.ts +10 -2
  57. package/dist/commands/init.js +58 -15
  58. package/dist/commands/integrations.js +47 -10
  59. package/dist/commands/login.js +31 -4
  60. package/dist/commands/mcp.js +143 -15
  61. package/dist/commands/setup.js +47 -122
  62. package/dist/commands/skills.js +230 -12
  63. package/dist/commands/sync.d.ts +8 -0
  64. package/dist/commands/sync.js +398 -65
  65. package/dist/commands/welcome.js +6 -3
  66. package/dist/generated/version.d.ts +1 -1
  67. package/dist/generated/version.js +1 -1
  68. package/dist/health/__tests__/checks.test.d.ts +1 -0
  69. package/dist/health/__tests__/checks.test.js +223 -0
  70. package/dist/health/checks.d.ts +20 -0
  71. package/dist/health/checks.js +392 -0
  72. package/dist/health/runner.d.ts +2 -0
  73. package/dist/health/runner.js +26 -0
  74. package/dist/health/types.d.ts +12 -0
  75. package/dist/health/types.js +1 -0
  76. package/dist/index.js +32 -0
  77. package/dist/sync/__tests__/change-detect.test.d.ts +1 -0
  78. package/dist/sync/__tests__/change-detect.test.js +123 -0
  79. package/dist/sync/__tests__/hash.test.d.ts +1 -0
  80. package/dist/sync/__tests__/hash.test.js +18 -0
  81. package/dist/sync/change-detect.d.ts +19 -0
  82. package/dist/sync/change-detect.js +136 -0
  83. package/dist/sync/conflict-ui.d.ts +5 -0
  84. package/dist/sync/conflict-ui.js +78 -0
  85. package/dist/sync/executor.d.ts +21 -0
  86. package/dist/sync/executor.js +98 -0
  87. package/dist/sync/hash.d.ts +1 -0
  88. package/dist/sync/hash.js +4 -0
  89. package/dist/sync/types.d.ts +24 -0
  90. package/dist/sync/types.js +1 -0
  91. package/dist/types.d.ts +12 -0
  92. package/dist/ui/__tests__/banner.test.js +17 -1
  93. package/dist/ui/banner.d.ts +1 -1
  94. package/dist/ui/banner.js +27 -2
  95. package/dist/utils/__tests__/resolve.test.d.ts +1 -0
  96. package/dist/utils/__tests__/resolve.test.js +95 -0
  97. package/dist/utils/__tests__/sqlite.test.d.ts +1 -0
  98. package/dist/utils/__tests__/sqlite.test.js +77 -0
  99. package/dist/utils/agent-guidance.d.ts +32 -0
  100. package/dist/utils/agent-guidance.js +106 -0
  101. package/dist/utils/fs.js +2 -2
  102. package/dist/utils/help-json.d.ts +56 -0
  103. package/dist/utils/help-json.js +85 -0
  104. package/dist/utils/resolve.d.ts +12 -0
  105. package/dist/utils/resolve.js +52 -0
  106. package/dist/utils/setup-state.d.ts +3 -0
  107. package/dist/utils/setup-state.js +19 -0
  108. package/dist/utils/sqlite.d.ts +7 -0
  109. package/dist/utils/sqlite.js +24 -0
  110. package/dist/utils/which.d.ts +6 -0
  111. package/dist/utils/which.js +18 -0
  112. package/package.json +7 -3
  113. package/dist/agents/copilot-cli.d.ts +0 -10
  114. package/dist/agents/copilot-cli.js +0 -46
  115. package/dist/agents/copilot-vscode.d.ts +0 -10
  116. package/dist/agents/copilot-vscode.js +0 -37
@@ -0,0 +1,135 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { generateIntroSkill, generateInstructionHint } from '../intro-skill.js';
3
+ function makeContext(overrides = {}) {
4
+ return {
5
+ workspaceName: 'Test Workspace',
6
+ workspaceId: 'ws-123',
7
+ registries: null,
8
+ connectedIntegrations: [],
9
+ mcpServerCount: 0,
10
+ skillCount: 0,
11
+ ...overrides,
12
+ };
13
+ }
14
+ describe('generateIntroSkill', () => {
15
+ it('generates a skill with workspace name', () => {
16
+ const skill = generateIntroSkill(makeContext());
17
+ expect(skill.name).toBe('runwork');
18
+ expect(skill.content).toContain('Test Workspace');
19
+ expect(skill.content).toContain('Runwork');
20
+ expect(skill.description).toContain('infrastructure platform');
21
+ });
22
+ it('includes entity names from registries', () => {
23
+ const skill = generateIntroSkill(makeContext({
24
+ registries: {
25
+ entities: [
26
+ { entityName: 'Customer', appName: 'crm', appId: 'a1' },
27
+ { entityName: 'Order', appName: 'shop', appId: 'a2' },
28
+ ],
29
+ workflows: [],
30
+ schedules: [],
31
+ agents: [],
32
+ endpoints: [],
33
+ components: [],
34
+ fileStorages: [],
35
+ },
36
+ }));
37
+ expect(skill.content).toContain('Customer (crm)');
38
+ expect(skill.content).toContain('Order (shop)');
39
+ });
40
+ it('includes workflow names', () => {
41
+ const skill = generateIntroSkill(makeContext({
42
+ registries: {
43
+ entities: [],
44
+ workflows: [{ name: 'onboard-user', appName: 'auth', appId: 'a1' }],
45
+ schedules: [],
46
+ agents: [],
47
+ endpoints: [],
48
+ components: [],
49
+ fileStorages: [],
50
+ },
51
+ }));
52
+ expect(skill.content).toContain('onboard-user');
53
+ });
54
+ it('includes connected integrations', () => {
55
+ const skill = generateIntroSkill(makeContext({
56
+ connectedIntegrations: ['github', 'slack', 'hubspot'],
57
+ }));
58
+ expect(skill.content).toContain('github, slack, hubspot');
59
+ });
60
+ it('includes MCP and skill counts', () => {
61
+ const skill = generateIntroSkill(makeContext({
62
+ mcpServerCount: 3,
63
+ skillCount: 5,
64
+ }));
65
+ expect(skill.content).toContain('3 MCP servers');
66
+ expect(skill.content).toContain('5 skills');
67
+ });
68
+ it('includes CLI commands section', () => {
69
+ const skill = generateIntroSkill(makeContext());
70
+ expect(skill.content).toContain('runwork info --json');
71
+ expect(skill.content).toContain('runwork dev');
72
+ expect(skill.content).toContain('runwork doctor');
73
+ });
74
+ it('includes references section', () => {
75
+ const skill = generateIntroSkill(makeContext());
76
+ expect(skill.content).toContain('https://www.runwork.ai');
77
+ expect(skill.content).toContain('changelog');
78
+ });
79
+ it('includes routing guidance', () => {
80
+ const skill = generateIntroSkill(makeContext());
81
+ expect(skill.content).toContain('workspace platform');
82
+ expect(skill.content).toContain('infrastructure');
83
+ });
84
+ it('deduplicates app names across registries', () => {
85
+ const skill = generateIntroSkill(makeContext({
86
+ registries: {
87
+ entities: [{ entityName: 'Task', appName: 'project-mgmt', appId: 'a1' }],
88
+ workflows: [{ name: 'notify', appName: 'project-mgmt', appId: 'a1' }],
89
+ schedules: [],
90
+ agents: [],
91
+ endpoints: [],
92
+ components: [],
93
+ fileStorages: [],
94
+ },
95
+ }));
96
+ // "project-mgmt" should appear in Apps section only once
97
+ const appsSection = skill.content.split('### Apps')[1]?.split('###')[0] || '';
98
+ const matches = appsSection.match(/project-mgmt/g);
99
+ expect(matches?.length).toBe(1);
100
+ });
101
+ });
102
+ describe('generateInstructionHint', () => {
103
+ const baseCtx = {
104
+ workspaceName: 'Test',
105
+ workspaceId: 'ws-test-123',
106
+ registries: null,
107
+ connectedIntegrations: [],
108
+ appCount: 0,
109
+ skillCount: 0,
110
+ mcpServerCount: 0,
111
+ };
112
+ it('includes workspace name', () => {
113
+ const hint = generateInstructionHint({ ...baseCtx, workspaceName: 'Acme Corp' });
114
+ expect(hint).toContain('Acme Corp');
115
+ });
116
+ it('includes runwork markers', () => {
117
+ const hint = generateInstructionHint(baseCtx);
118
+ expect(hint).toContain('<!-- runwork:start -->');
119
+ expect(hint).toContain('<!-- runwork:end -->');
120
+ });
121
+ it('mentions the runwork skill', () => {
122
+ const hint = generateInstructionHint(baseCtx);
123
+ expect(hint).toContain('runwork');
124
+ expect(hint).toContain('skill');
125
+ });
126
+ it('includes routing directive', () => {
127
+ const hint = generateInstructionHint(baseCtx);
128
+ expect(hint).toContain('Routing:');
129
+ });
130
+ it('includes inventory line', () => {
131
+ const hint = generateInstructionHint({ ...baseCtx, appCount: 2, skillCount: 3 });
132
+ expect(hint).toContain('2 apps');
133
+ expect(hint).toContain('3 skills');
134
+ });
135
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,212 @@
1
+ /**
2
+ * Schema validation tests: run against REAL local agent data.
3
+ * Skipped in CI (no agents installed).
4
+ * Run locally with: RUNWORK_TEST_LOCAL_AGENTS=1 bun run test
5
+ *
6
+ * These tests catch when an agent update changes file formats
7
+ * that our readUsageStats() implementations depend on.
8
+ */
9
+ import { describe, it, expect } from 'vitest';
10
+ import { existsSync, readFileSync, readdirSync } from 'fs';
11
+ import { homedir, platform } from 'os';
12
+ import { join } from 'path';
13
+ import { querySqlite } from '../../utils/sqlite.js';
14
+ const SKIP = !process.env.RUNWORK_TEST_LOCAL_AGENTS;
15
+ const home = homedir();
16
+ const os = platform();
17
+ // ---------------------------------------------------------------------------
18
+ // Claude Code
19
+ // ---------------------------------------------------------------------------
20
+ describe.skipIf(SKIP)('Schema: Claude Code', () => {
21
+ const claudeDir = join(home, '.claude');
22
+ it('stats-cache.json exists and has version + dailyActivity', () => {
23
+ const statsCachePath = join(claudeDir, 'stats-cache.json');
24
+ expect.soft(existsSync(statsCachePath)).toBe(true);
25
+ if (!existsSync(statsCachePath))
26
+ return;
27
+ const raw = JSON.parse(readFileSync(statsCachePath, 'utf-8'));
28
+ expect.soft(raw).toHaveProperty('version');
29
+ expect.soft(raw).toHaveProperty('dailyActivity');
30
+ expect.soft(Array.isArray(raw.dailyActivity)).toBe(true);
31
+ });
32
+ it('dailyActivity entries have expected shape', () => {
33
+ const statsCachePath = join(claudeDir, 'stats-cache.json');
34
+ if (!existsSync(statsCachePath))
35
+ return;
36
+ const raw = JSON.parse(readFileSync(statsCachePath, 'utf-8'));
37
+ if (!Array.isArray(raw.dailyActivity) || raw.dailyActivity.length === 0)
38
+ return;
39
+ const entry = raw.dailyActivity[0];
40
+ expect.soft(typeof entry.date).toBe('string');
41
+ expect.soft(typeof entry.messageCount).toBe('number');
42
+ expect.soft(typeof entry.sessionCount).toBe('number');
43
+ expect.soft(typeof entry.toolCallCount).toBe('number');
44
+ });
45
+ it('sessions directory exists and session files have expected fields', () => {
46
+ const sessionsDir = join(claudeDir, 'sessions');
47
+ if (!existsSync(sessionsDir))
48
+ return;
49
+ const files = readdirSync(sessionsDir).filter(f => f.endsWith('.json'));
50
+ if (files.length === 0)
51
+ return;
52
+ // Check the first file
53
+ const firstFile = join(sessionsDir, files[0]);
54
+ const session = JSON.parse(readFileSync(firstFile, 'utf-8'));
55
+ expect.soft(session).toHaveProperty('pid');
56
+ expect.soft(session).toHaveProperty('sessionId');
57
+ expect.soft(session).toHaveProperty('startedAt');
58
+ });
59
+ });
60
+ // ---------------------------------------------------------------------------
61
+ // Claude Desktop
62
+ // ---------------------------------------------------------------------------
63
+ describe.skipIf(SKIP)('Schema: Claude Desktop', () => {
64
+ const getSessionsDir = () => {
65
+ if (os === 'darwin') {
66
+ return join(home, 'Library', 'Application Support', 'Claude', 'local-agent-mode-sessions');
67
+ }
68
+ if (os === 'win32') {
69
+ return join(process.env.APPDATA || join(home, 'AppData', 'Roaming'), 'Claude', 'local-agent-mode-sessions');
70
+ }
71
+ return join(home, '.config', 'Claude', 'local-agent-mode-sessions');
72
+ };
73
+ it('local-agent-mode-sessions directory exists (if Claude Desktop installed)', () => {
74
+ const sessionsDir = getSessionsDir();
75
+ // This test documents whether the directory exists; soft assert so it does not block others
76
+ expect.soft(existsSync(sessionsDir)).toBe(true);
77
+ });
78
+ it('session JSON files have expected shape', () => {
79
+ const sessionsDir = getSessionsDir();
80
+ if (!existsSync(sessionsDir))
81
+ return;
82
+ // Walk org/user/session structure to find a JSON file
83
+ const orgDirs = readdirSync(sessionsDir).filter(d => !d.startsWith('.') && d !== 'skills-plugin');
84
+ for (const orgDir of orgDirs) {
85
+ const orgPath = join(sessionsDir, orgDir);
86
+ let userDirs;
87
+ try {
88
+ userDirs = readdirSync(orgPath);
89
+ }
90
+ catch {
91
+ continue;
92
+ }
93
+ for (const userDir of userDirs) {
94
+ if (userDir.startsWith('.'))
95
+ continue;
96
+ const userPath = join(orgPath, userDir);
97
+ let files;
98
+ try {
99
+ files = readdirSync(userPath).filter(f => f.endsWith('.json'));
100
+ }
101
+ catch {
102
+ continue;
103
+ }
104
+ if (files.length === 0)
105
+ continue;
106
+ // Try each JSON file until we find one with session shape
107
+ for (const file of files) {
108
+ try {
109
+ const session = JSON.parse(readFileSync(join(userPath, file), 'utf-8'));
110
+ // Skip non-session JSONs (must have sessionId to be a session)
111
+ if (!session.sessionId)
112
+ continue;
113
+ expect.soft(session).toHaveProperty('sessionId');
114
+ expect.soft(session).toHaveProperty('model');
115
+ expect.soft(typeof session.createdAt).toBe('number');
116
+ if (session.lastActivityAt !== undefined) {
117
+ expect.soft(typeof session.lastActivityAt).toBe('number');
118
+ }
119
+ return; // Found one valid session, that is enough
120
+ }
121
+ catch {
122
+ continue;
123
+ }
124
+ }
125
+ }
126
+ }
127
+ });
128
+ });
129
+ // ---------------------------------------------------------------------------
130
+ // Codex
131
+ // ---------------------------------------------------------------------------
132
+ describe.skipIf(SKIP)('Schema: Codex', () => {
133
+ const codexDir = join(home, '.codex');
134
+ it('state_5.sqlite exists and has threads table', () => {
135
+ const dbPath = join(codexDir, 'state_5.sqlite');
136
+ if (!existsSync(dbPath))
137
+ return;
138
+ const result = querySqlite(dbPath, `SELECT name FROM sqlite_master WHERE type='table' AND name='threads'`);
139
+ expect.soft(result).toContain('threads');
140
+ });
141
+ it('threads table has expected columns', () => {
142
+ const dbPath = join(codexDir, 'state_5.sqlite');
143
+ if (!existsSync(dbPath))
144
+ return;
145
+ const result = querySqlite(dbPath, `PRAGMA table_info(threads)`);
146
+ expect.soft(result).toContain('id');
147
+ expect.soft(result).toContain('created_at');
148
+ expect.soft(result).toContain('tokens_used');
149
+ expect.soft(result).toContain('cli_version');
150
+ });
151
+ it('history.jsonl exists and lines have expected fields', () => {
152
+ const historyPath = join(codexDir, 'history.jsonl');
153
+ if (!existsSync(historyPath))
154
+ return;
155
+ const content = readFileSync(historyPath, 'utf-8').trim();
156
+ if (!content)
157
+ return;
158
+ const firstLine = content.split('\n')[0];
159
+ const entry = JSON.parse(firstLine);
160
+ expect.soft(entry).toHaveProperty('session_id');
161
+ expect.soft(entry).toHaveProperty('ts');
162
+ });
163
+ it('version.json has latest_version', () => {
164
+ const versionPath = join(codexDir, 'version.json');
165
+ if (!existsSync(versionPath))
166
+ return;
167
+ const data = JSON.parse(readFileSync(versionPath, 'utf-8'));
168
+ expect.soft(data).toHaveProperty('latest_version');
169
+ });
170
+ });
171
+ // ---------------------------------------------------------------------------
172
+ // Cursor
173
+ // ---------------------------------------------------------------------------
174
+ describe.skipIf(SKIP)('Schema: Cursor', () => {
175
+ const getGlobalDbPath = () => {
176
+ if (os === 'darwin') {
177
+ return join(home, 'Library', 'Application Support', 'Cursor', 'User', 'globalStorage', 'state.vscdb');
178
+ }
179
+ if (os === 'win32') {
180
+ return join(process.env.APPDATA || join(home, 'AppData', 'Roaming'), 'Cursor', 'User', 'globalStorage', 'state.vscdb');
181
+ }
182
+ return join(home, '.config', 'Cursor', 'User', 'globalStorage', 'state.vscdb');
183
+ };
184
+ it('state.vscdb exists and has cursorDiskKV table', () => {
185
+ const dbPath = getGlobalDbPath();
186
+ if (!existsSync(dbPath))
187
+ return;
188
+ const result = querySqlite(dbPath, `SELECT name FROM sqlite_master WHERE type='table' AND name='cursorDiskKV'`);
189
+ expect.soft(result).toContain('cursorDiskKV');
190
+ });
191
+ it('composerData entries exist and parse as JSON with expected fields', () => {
192
+ const dbPath = getGlobalDbPath();
193
+ if (!existsSync(dbPath))
194
+ return;
195
+ const result = querySqlite(dbPath, `SELECT value FROM cursorDiskKV WHERE key LIKE 'composerData-%' LIMIT 1`);
196
+ if (!result.trim())
197
+ return;
198
+ const data = JSON.parse(result.trim().split('\n')[0]);
199
+ expect.soft(data).toHaveProperty('composerId');
200
+ expect.soft(data).toHaveProperty('createdAt');
201
+ });
202
+ it('ai-code-tracking.db has scored_commits table with AI percentage columns', () => {
203
+ const trackingDbPath = join(home, '.cursor', 'ai-tracking', 'ai-code-tracking.db');
204
+ if (!existsSync(trackingDbPath))
205
+ return;
206
+ const tableResult = querySqlite(trackingDbPath, `SELECT name FROM sqlite_master WHERE type='table' AND name='scored_commits'`);
207
+ expect.soft(tableResult).toContain('scored_commits');
208
+ const columnsResult = querySqlite(trackingDbPath, `PRAGMA table_info(scored_commits)`);
209
+ expect.soft(columnsResult).toContain('v1AiPercentage');
210
+ expect.soft(columnsResult).toContain('v2AiPercentage');
211
+ });
212
+ });
@@ -1,4 +1,4 @@
1
- import type { AgentAdapter, McpServerEntry, SkillFile } from './types.js';
1
+ import type { AgentAdapter, AgentConfigOverride, AgentUsageStats, McpServerEntry, SkillFile, SkillUsageEntry } from './types.js';
2
2
  export declare class ClaudeCodeAdapter implements AgentAdapter {
3
3
  name: string;
4
4
  slug: string;
@@ -7,4 +7,19 @@ export declare class ClaudeCodeAdapter implements AgentAdapter {
7
7
  supportsSkills(): boolean;
8
8
  writeMcpServers(servers: McpServerEntry[], scope: 'project' | 'user'): Promise<void>;
9
9
  writeSkills(skills: SkillFile[], scope: 'project' | 'user'): Promise<void>;
10
+ writeInstructionHint(hint: string, scope: 'project' | 'user'): Promise<void>;
11
+ writeTeamInstructions(instructions: string, scope: 'project' | 'user'): Promise<void>;
12
+ writeAgentConfig(config: AgentConfigOverride, scope: 'project' | 'user'): Promise<void>;
13
+ /** Remove the managed marker and all entries after it from a permissions array */
14
+ private removeAfterMarker;
15
+ readUsageStats(lastSyncAt: string | null): Promise<AgentUsageStats | null>;
16
+ readSkillUsage(lastSyncAt: string | null): Promise<SkillUsageEntry[] | null>;
17
+ readVersion(): Promise<string | null>;
18
+ private getPluginsBaseDir;
19
+ private getPluginDir;
20
+ /** The marketplace root (contains marketplace.json and plugins/) */
21
+ private getMarketplaceRoot;
22
+ /** The plugin directory within the marketplace */
23
+ private getMarketplaceDir;
24
+ private registerPlugin;
10
25
  }