mrvn-cli 0.1.4 → 0.2.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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SdkMcpToolDefinition, McpSdkServerConfigWithInstance } from '@anthropic-ai/claude-agent-sdk';
1
+ import { SdkMcpToolDefinition, McpSdkServerConfigWithInstance, AgentDefinition } from '@anthropic-ai/claude-agent-sdk';
2
2
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
3
  import { Command } from 'commander';
4
4
 
@@ -237,11 +237,14 @@ declare function getPluginPromptFragment(plugin: MarvinPlugin, personaId: string
237
237
  declare const COMMON_REGISTRATIONS: DocumentTypeRegistration[];
238
238
  declare function createCommonTools(store: DocumentStore): SdkMcpToolDefinition<any>[];
239
239
 
240
+ type SkillFormat = 'builtin-ts' | 'yaml' | 'skill-md';
240
241
  interface SkillDefinition {
241
242
  id: string;
242
243
  name: string;
243
244
  description: string;
244
245
  version: string;
246
+ format: SkillFormat;
247
+ dirPath?: string;
245
248
  personas?: string[];
246
249
  tools?: (store: DocumentStore) => SdkMcpToolDefinition<any>[];
247
250
  promptFragments?: Record<string, string>;
@@ -255,11 +258,22 @@ interface SkillAction {
255
258
  maxTurns?: number;
256
259
  allowGovernanceTools?: boolean;
257
260
  }
261
+ interface SkillInfo {
262
+ id: string;
263
+ name: string;
264
+ version: string;
265
+ description: string;
266
+ format: SkillFormat;
267
+ assignedPersonas: string[];
268
+ }
258
269
 
270
+ declare function loadSkillFromDirectory(dirPath: string): SkillDefinition | undefined;
259
271
  declare function loadAllSkills(marvinDir?: string): Map<string, SkillDefinition>;
260
272
  declare function resolveSkillsForPersona(personaId: string, skillsConfig: Record<string, string[]> | undefined, allSkills: Map<string, SkillDefinition>): string[];
261
273
  declare function getSkillTools(skillIds: string[], allSkills: Map<string, SkillDefinition>, store: DocumentStore): SdkMcpToolDefinition<any>[];
262
274
  declare function getSkillPromptFragment(skillIds: string[], allSkills: Map<string, SkillDefinition>, personaId: string): string | undefined;
275
+ declare function getSkillAgentDefinitions(skillIds: string[], allSkills: Map<string, SkillDefinition>): Record<string, AgentDefinition>;
276
+ declare function migrateYamlToSkillMd(yamlPath: string, outputDir: string): void;
263
277
 
264
278
  interface StdioServerOptions {
265
279
  marvinDir: string;
@@ -281,4 +295,4 @@ declare function startStdioServer(options: StdioServerOptions): Promise<void>;
281
295
 
282
296
  declare function createProgram(): Command;
283
297
 
284
- export { ApiKeyMissingError, COMMON_REGISTRATIONS, CORE_DOCUMENT_TYPES, ConfigError, type Document, type DocumentFrontmatter, type DocumentQuery, DocumentStore, type DocumentType, type DocumentTypeRegistration, type IngestOptions, type IngestResult, MarvinError, type MarvinPlugin, type MarvinProjectConfig, type MarvinUserConfig, type MergedConfig, type PersonaDefinition, ProjectNotFoundError, type SessionEntry, type SessionOptions, SessionStore, type SkillAction, type SkillDefinition, type SourceFileEntry, type SourceFileStatus, type SourceManifest, SourceManifestManager, type StdioServerOptions, buildSystemPrompt, collectTools, createCommonTools, createMarvinMcpServer, createProgram, findProjectRoot, getConfig, getPersona, getPluginPromptFragment, getPluginTools, getSkillPromptFragment, getSkillTools, isMarvinProject, listPersonas, loadAllSkills, loadProject, loadUserConfig, parseDocument, registerSdkTools, resolvePersonaId, resolvePlugin, resolveSkillsForPersona, saveUserConfig, serializeDocument, startSession, startStdioServer };
298
+ export { ApiKeyMissingError, COMMON_REGISTRATIONS, CORE_DOCUMENT_TYPES, ConfigError, type Document, type DocumentFrontmatter, type DocumentQuery, DocumentStore, type DocumentType, type DocumentTypeRegistration, type IngestOptions, type IngestResult, MarvinError, type MarvinPlugin, type MarvinProjectConfig, type MarvinUserConfig, type MergedConfig, type PersonaDefinition, ProjectNotFoundError, type SessionEntry, type SessionOptions, SessionStore, type SkillAction, type SkillDefinition, type SkillFormat, type SkillInfo, type SourceFileEntry, type SourceFileStatus, type SourceManifest, SourceManifestManager, type StdioServerOptions, buildSystemPrompt, collectTools, createCommonTools, createMarvinMcpServer, createProgram, findProjectRoot, getConfig, getPersona, getPluginPromptFragment, getPluginTools, getSkillAgentDefinitions, getSkillPromptFragment, getSkillTools, isMarvinProject, listPersonas, loadAllSkills, loadProject, loadSkillFromDirectory, loadUserConfig, migrateYamlToSkillMd, parseDocument, registerSdkTools, resolvePersonaId, resolvePlugin, resolveSkillsForPersona, saveUserConfig, serializeDocument, startSession, startStdioServer };