@cortask/core 0.2.13 → 0.2.15
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 +26 -1
- package/dist/index.js +647 -458
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -440,6 +440,11 @@ declare class WorkspaceManager {
|
|
|
440
440
|
*/
|
|
441
441
|
declare function createSwitchWorkspaceTool(workspaceManager: WorkspaceManager, chatKey: string): ToolHandler;
|
|
442
442
|
|
|
443
|
+
/**
|
|
444
|
+
* Creates a skill management tool bound to the user skills directory.
|
|
445
|
+
*/
|
|
446
|
+
declare function createSkillTool(userSkillsDir: string, bundledSkillNames: string[]): ToolHandler;
|
|
447
|
+
|
|
443
448
|
declare const builtinTools: ToolHandler[];
|
|
444
449
|
|
|
445
450
|
interface SystemPromptContext {
|
|
@@ -1052,6 +1057,26 @@ declare function installSkillFromGit(gitUrl: string, skillsDir: string): Promise
|
|
|
1052
1057
|
*/
|
|
1053
1058
|
declare function removeSkill(skillName: string, skillsDir: string): Promise<void>;
|
|
1054
1059
|
|
|
1060
|
+
/**
|
|
1061
|
+
* Validate a skill name (kebab-case, 2-50 chars).
|
|
1062
|
+
*/
|
|
1063
|
+
declare function validateSkillName(name: string): string | null;
|
|
1064
|
+
/**
|
|
1065
|
+
* Create a new custom skill by writing a SKILL.md file.
|
|
1066
|
+
*/
|
|
1067
|
+
declare function createSkill(skillsDir: string, name: string, rawContent: string): Promise<{
|
|
1068
|
+
name: string;
|
|
1069
|
+
path: string;
|
|
1070
|
+
}>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Update an existing custom skill's SKILL.md file.
|
|
1073
|
+
*/
|
|
1074
|
+
declare function updateSkill(skillsDir: string, name: string, rawContent: string): Promise<void>;
|
|
1075
|
+
/**
|
|
1076
|
+
* Read the raw SKILL.md content for editing.
|
|
1077
|
+
*/
|
|
1078
|
+
declare function readSkillFile(skillsDir: string, name: string): Promise<string>;
|
|
1079
|
+
|
|
1055
1080
|
/**
|
|
1056
1081
|
* Get the credential store key for a skill credential field.
|
|
1057
1082
|
* Format: skill.{skillName}.{credentialId}.{fieldKey}
|
|
@@ -1190,4 +1215,4 @@ declare class Logger {
|
|
|
1190
1215
|
}
|
|
1191
1216
|
declare const logger: Logger;
|
|
1192
1217
|
|
|
1193
|
-
export { AVAILABLE_PROVIDERS, type AgentRunParams, type AgentRunResult, AgentRunner, type AgentRunnerConfig, type AgentRunnerDeps, type AgentStreamEvent, AnthropicProvider, type Artifact, ArtifactStore, type Attachment, type ChannelType, type ContentPart, type CortaskConfig, type CredentialDefinition, type CredentialSchema, type CredentialStore, type CronDelivery, type CronEvent, type CronJob, type CronJobCreate, type CronJobState, type CronSchedule, CronService, type EmbedParams, type EmbedResult, type EnabledModel, EncryptedCredentialStore, type GenerateTextParams, type GenerateTextResult, GoogleProvider, GrokProvider, type LLMProvider, type LogLevel, MODEL_DEFINITIONS, type Message, MiniMaxProvider, type ModelInfo, ModelStore, MoonshotProvider, OllamaProvider, type OnboardingData, type OnboardingStatus, OpenAICompatibleProvider, OpenAIProvider, OpenRouterProvider, type PermissionRequest, type PromptTemplate, type ProviderId, type ProviderInfo, type ProviderValidationResult, type QuestionnaireQuestion, type QuestionnaireRequest, type QuestionnaireResponse, SUBAGENT_DEFAULTS, type Session, SessionStore, type SessionWithMessages, type SkillCodeTool, type SkillEntry, type SkillManifest, type SkillSource, type SkillToolTemplate, type StreamChunk, type SubagentRunRecord, TemplateStore, type ToolCall, type ToolDefinition, type ToolExecutionContext, type ToolHandler, type ToolResult, type UsageRecord, UsageStore, type UsageSummary, type Workspace, WorkspaceManager, buildSkillOAuth2AuthUrl, buildSkillTools, buildSystemPrompt, builtinTools, cancelChildrenOfSession, cancelSubagentRun, cleanupSubagentRecords, clearSkillCache, completeSubagentRun, computeNextRunAtMs, cortaskConfigSchema, countActiveChildren, createArtifactTool, createBrowserTool, createCronTool, createProvider, createSubagentTool, createSwitchWorkspaceTool, credentialKey, estimateCost, exchangeSkillOAuth2Code, getCredentialStorageKey, getDataDir, getDepthForSession, getEligibleSkills, getModelDefinitions, getOAuth2StorageKeys, getOrCreateSecret, getProviderInfo, getSubagentRun, installSkillFromGit, loadConfig, loadSkills, logger, migrateAllWorkspaces, migrateSessionDatabase, registerSubagentRun, removeSkill, revokeSkillOAuth2, saveConfig, setSubagentRunner, validateCronExpr, validateProvider };
|
|
1218
|
+
export { AVAILABLE_PROVIDERS, type AgentRunParams, type AgentRunResult, AgentRunner, type AgentRunnerConfig, type AgentRunnerDeps, type AgentStreamEvent, AnthropicProvider, type Artifact, ArtifactStore, type Attachment, type ChannelType, type ContentPart, type CortaskConfig, type CredentialDefinition, type CredentialSchema, type CredentialStore, type CronDelivery, type CronEvent, type CronJob, type CronJobCreate, type CronJobState, type CronSchedule, CronService, type EmbedParams, type EmbedResult, type EnabledModel, EncryptedCredentialStore, type GenerateTextParams, type GenerateTextResult, GoogleProvider, GrokProvider, type LLMProvider, type LogLevel, MODEL_DEFINITIONS, type Message, MiniMaxProvider, type ModelInfo, ModelStore, MoonshotProvider, OllamaProvider, type OnboardingData, type OnboardingStatus, OpenAICompatibleProvider, OpenAIProvider, OpenRouterProvider, type PermissionRequest, type PromptTemplate, type ProviderId, type ProviderInfo, type ProviderValidationResult, type QuestionnaireQuestion, type QuestionnaireRequest, type QuestionnaireResponse, SUBAGENT_DEFAULTS, type Session, SessionStore, type SessionWithMessages, type SkillCodeTool, type SkillEntry, type SkillManifest, type SkillSource, type SkillToolTemplate, type StreamChunk, type SubagentRunRecord, TemplateStore, type ToolCall, type ToolDefinition, type ToolExecutionContext, type ToolHandler, type ToolResult, type UsageRecord, UsageStore, type UsageSummary, type Workspace, WorkspaceManager, buildSkillOAuth2AuthUrl, buildSkillTools, buildSystemPrompt, builtinTools, cancelChildrenOfSession, cancelSubagentRun, cleanupSubagentRecords, clearSkillCache, completeSubagentRun, computeNextRunAtMs, cortaskConfigSchema, countActiveChildren, createArtifactTool, createBrowserTool, createCronTool, createProvider, createSkill, createSkillTool, createSubagentTool, createSwitchWorkspaceTool, credentialKey, estimateCost, exchangeSkillOAuth2Code, getCredentialStorageKey, getDataDir, getDepthForSession, getEligibleSkills, getModelDefinitions, getOAuth2StorageKeys, getOrCreateSecret, getProviderInfo, getSubagentRun, installSkillFromGit, loadConfig, loadSkills, logger, migrateAllWorkspaces, migrateSessionDatabase, readSkillFile, registerSubagentRun, removeSkill, revokeSkillOAuth2, saveConfig, setSubagentRunner, updateSkill, validateCronExpr, validateProvider, validateSkillName };
|