@qlucent/fishi-core 0.12.0 → 0.14.1
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 +100 -1
- package/dist/index.js +2160 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -369,6 +369,8 @@ declare function getDocCheckerScript(): string;
|
|
|
369
369
|
*/
|
|
370
370
|
declare function getMonitorEmitterScript(): string;
|
|
371
371
|
|
|
372
|
+
declare function getFileLockHookScript(): string;
|
|
373
|
+
|
|
372
374
|
declare function getInitCommand(): string;
|
|
373
375
|
|
|
374
376
|
declare function getStatusCommand(): string;
|
|
@@ -818,10 +820,107 @@ declare function getScanRules(): {
|
|
|
818
820
|
cwe?: string;
|
|
819
821
|
}[];
|
|
820
822
|
|
|
823
|
+
interface Pattern {
|
|
824
|
+
id: string;
|
|
825
|
+
name: string;
|
|
826
|
+
category: string;
|
|
827
|
+
description: string;
|
|
828
|
+
tools: string[];
|
|
829
|
+
guide: string;
|
|
830
|
+
}
|
|
831
|
+
interface PatternCategory {
|
|
832
|
+
id: string;
|
|
833
|
+
name: string;
|
|
834
|
+
description: string;
|
|
835
|
+
patterns: Pattern[];
|
|
836
|
+
}
|
|
837
|
+
interface SelectedPatterns {
|
|
838
|
+
patterns: string[];
|
|
839
|
+
savedAt: string;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Get all available pattern categories.
|
|
843
|
+
*/
|
|
844
|
+
declare function getPatternCategories(): PatternCategory[];
|
|
845
|
+
/**
|
|
846
|
+
* Get patterns for a specific category.
|
|
847
|
+
*/
|
|
848
|
+
declare function getPatternsByCategory(categoryId: string): Pattern[];
|
|
849
|
+
/**
|
|
850
|
+
* Get a specific pattern by ID.
|
|
851
|
+
*/
|
|
852
|
+
declare function getPattern(patternId: string): Pattern | undefined;
|
|
853
|
+
/**
|
|
854
|
+
* Search patterns by query string.
|
|
855
|
+
*/
|
|
856
|
+
declare function searchPatterns(query: string): Pattern[];
|
|
857
|
+
/**
|
|
858
|
+
* Save selected patterns to .fishi/patterns.json
|
|
859
|
+
*/
|
|
860
|
+
declare function saveSelectedPatterns(projectDir: string, patternIds: string[]): void;
|
|
861
|
+
/**
|
|
862
|
+
* Read selected patterns from .fishi/patterns.json
|
|
863
|
+
*/
|
|
864
|
+
declare function readSelectedPatterns(projectDir: string): string[];
|
|
865
|
+
/**
|
|
866
|
+
* Generate architecture guide for selected patterns.
|
|
867
|
+
* This is what the architect agent reads.
|
|
868
|
+
*/
|
|
869
|
+
declare function generatePatternGuide(patternIds: string[]): string;
|
|
870
|
+
|
|
871
|
+
interface FileLock {
|
|
872
|
+
file: string;
|
|
873
|
+
agent: string;
|
|
874
|
+
task: string;
|
|
875
|
+
coordinator: string;
|
|
876
|
+
lockedAt: string;
|
|
877
|
+
}
|
|
878
|
+
interface LockConflict {
|
|
879
|
+
file: string;
|
|
880
|
+
requestingAgent: string;
|
|
881
|
+
requestingTask: string;
|
|
882
|
+
lockedBy: string;
|
|
883
|
+
lockedTask: string;
|
|
884
|
+
lockedAt: string;
|
|
885
|
+
}
|
|
886
|
+
interface LockResult {
|
|
887
|
+
success: boolean;
|
|
888
|
+
locked: string[];
|
|
889
|
+
conflicts: LockConflict[];
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* Read all current file locks.
|
|
893
|
+
*/
|
|
894
|
+
declare function readFileLocks(projectDir: string): FileLock[];
|
|
895
|
+
/**
|
|
896
|
+
* Check if files can be locked (no conflicts with existing locks).
|
|
897
|
+
*/
|
|
898
|
+
declare function checkLockConflicts(projectDir: string, files: string[], agent: string, task: string): LockConflict[];
|
|
899
|
+
/**
|
|
900
|
+
* Acquire locks on files for an agent's task.
|
|
901
|
+
* Returns success=true if all locks acquired, or conflicts if any file is already locked.
|
|
902
|
+
*/
|
|
903
|
+
declare function acquireLocks(projectDir: string, files: string[], agent: string, task: string, coordinator: string): LockResult;
|
|
904
|
+
/**
|
|
905
|
+
* Release all locks held by an agent (after task completion/merge/cleanup).
|
|
906
|
+
*/
|
|
907
|
+
declare function releaseLocks(projectDir: string, agent: string, task?: string): string[];
|
|
908
|
+
/**
|
|
909
|
+
* Get all locks for a specific agent.
|
|
910
|
+
*/
|
|
911
|
+
declare function getAgentLocks(projectDir: string, agent: string): FileLock[];
|
|
912
|
+
/**
|
|
913
|
+
* Get lock status summary — how many files locked, by which agents.
|
|
914
|
+
*/
|
|
915
|
+
declare function getLockSummary(projectDir: string): {
|
|
916
|
+
totalLocked: number;
|
|
917
|
+
byAgent: Record<string, number>;
|
|
918
|
+
};
|
|
919
|
+
|
|
821
920
|
declare function getSandboxPolicyTemplate(): string;
|
|
822
921
|
|
|
823
922
|
declare function getDockerfileTemplate(): string;
|
|
824
923
|
|
|
825
924
|
declare function getDashboardHtml(): string;
|
|
826
925
|
|
|
827
|
-
export { type AgentDefinition, type AgentRole as AgentPermissionRole, type AgentPermissionSet, type AgentRole$1 as AgentRole, type AgentTemplate, type BackupManifest, type BrandGuardianIssue, type BrandGuardianReport, type BrownfieldAnalysisData, type ClaudeMdOptions, type CommandTemplate, type ComponentEntry, type ComponentRegistry, type ConflictCategory, type ConflictMap, type ConflictResolution, type CostMode, DOMAIN_INFO, type DesignTokens, type DetectionCheck, type DetectionResult, type DevServerConfig, type DomainConfig, type DynamicAgent, type DynamicAgentConfig, type ExecutionConfig, type FileConflict, type FileResolutionMap, type FishiConfig, type FishiYamlOptions, type GateConfig, type GateStatus, type GitConfig, type HookTemplate, type InitOptions, type McpConfig, type McpServerConfig, type ModelRoutingConfig, type ModelTier, type MonitorEvent, type MonitorState, type MonitorSummary, type ProjectConfig, type ProjectDomain, type ProjectType, type ProjectYamlOptions, type SandboxConfig, type SandboxMode, type SandboxPolicy, type SandboxRunResult, type ScaffoldOptions, type ScaffoldResult, type SecurityFinding, type SecurityReport, type Severity as SecuritySeverity, type SkillTemplate, type StateConfig, type TaskStatus, type TaskboardConfig, type TemplateContext, architectAgentTemplate, backendAgentTemplate, buildSandboxEnv, createBackup, detectComponentRegistry, detectConflicts, detectDesignTokens, detectDevServer, detectDocker, devLeadTemplate, devopsAgentTemplate, docsAgentTemplate, emitEvent, frontendAgentTemplate, fullstackAgentTemplate, generateDefaultTokens, generateDesignSystemConfig, generatePermissionBlock, generateScaffold, generateSecurityReport, getAdaptiveTaskGraphSkill, getAgentCompleteHook, getAgentFactoryTemplate, getAgentRegistryTemplate, getAgentSummary, getAgentsMdTemplate, getAimlArchitectTemplate, getAllPermissionSummary, getApiDesignSkill, getAutoCheckpointHook, getAvailableDomains, getBoardCommand, getBrainstormingSkill, getBrownfieldAnalysisSkill, getBrownfieldDiscoverySkill, getClaudeMdTemplate, getCodeGenSkill, getCoordinatorFactoryTemplate, getDashboardHtml, getDebuggingSkill, getDeepResearchAgentTemplate, getDeepResearchSkill, getDeploymentSkill, getDocCheckerScript, getDockerfileTemplate, getDocumentationSkill, getDomainConfigYaml, getFishiYamlTemplate, getGateCommand, getGateManagerScript, getGitignoreAdditions, getInitCommand, getLearningsManagerScript, getMarketplaceArchitectTemplate, getMasterOrchestratorTemplate, getMcpJsonTemplate, getMemoryManagerScript, getMobileArchitectTemplate, getModelRoutingReference, getMonitorEmitterScript, getPermissionsForRole, getPhaseRunnerScript, getPostEditHook, getPrdCommand, getPrdSkill, getProjectYamlTemplate, getResetCommand, getResumeCommand, getSaasArchitectTemplate, getSafetyCheckHook, getSandboxPolicyTemplate, getScanRules, getSessionStartHook, getSettingsJsonTemplate, getSoulMdTemplate, getSprintCommand, getStatusCommand, getTaskboardOpsSkill, getTaskboardUpdateHook, getTestingSkill, getTodoManagerScript, getValidateScaffoldScript, getVibeModeConfig, getWorktreeManagerScript, getWorktreeSetupHook, marketingAgentTemplate, mergeClaudeMd, mergeClaudeMdTop, mergeGitignore, mergeMcpJson, mergeSettingsJson, opsLeadTemplate, planningAgentTemplate, planningLeadTemplate, qualityLeadTemplate, readDomainConfig, readMonitorState, readSandboxConfig, readSandboxPolicy, researchAgentTemplate, runBrandGuardian, runInDockerSandbox, runInProcessSandbox, runInSandbox, runSecurityScan, securityAgentTemplate, startDevServer, testingAgentTemplate, uiuxAgentTemplate, writingAgentTemplate };
|
|
926
|
+
export { type AgentDefinition, type AgentRole as AgentPermissionRole, type AgentPermissionSet, type AgentRole$1 as AgentRole, type AgentTemplate, type BackupManifest, type BrandGuardianIssue, type BrandGuardianReport, type BrownfieldAnalysisData, type ClaudeMdOptions, type CommandTemplate, type ComponentEntry, type ComponentRegistry, type ConflictCategory, type ConflictMap, type ConflictResolution, type CostMode, DOMAIN_INFO, type DesignTokens, type DetectionCheck, type DetectionResult, type DevServerConfig, type DomainConfig, type DynamicAgent, type DynamicAgentConfig, type ExecutionConfig, type FileConflict, type FileLock, type FileResolutionMap, type FishiConfig, type FishiYamlOptions, type GateConfig, type GateStatus, type GitConfig, type HookTemplate, type InitOptions, type LockConflict, type LockResult, type McpConfig, type McpServerConfig, type ModelRoutingConfig, type ModelTier, type MonitorEvent, type MonitorState, type MonitorSummary, type Pattern, type PatternCategory, type ProjectConfig, type ProjectDomain, type ProjectType, type ProjectYamlOptions, type SandboxConfig, type SandboxMode, type SandboxPolicy, type SandboxRunResult, type ScaffoldOptions, type ScaffoldResult, type SecurityFinding, type SecurityReport, type Severity as SecuritySeverity, type SelectedPatterns, type SkillTemplate, type StateConfig, type TaskStatus, type TaskboardConfig, type TemplateContext, acquireLocks, architectAgentTemplate, backendAgentTemplate, buildSandboxEnv, checkLockConflicts, createBackup, detectComponentRegistry, detectConflicts, detectDesignTokens, detectDevServer, detectDocker, devLeadTemplate, devopsAgentTemplate, docsAgentTemplate, emitEvent, frontendAgentTemplate, fullstackAgentTemplate, generateDefaultTokens, generateDesignSystemConfig, generatePatternGuide, generatePermissionBlock, generateScaffold, generateSecurityReport, getAdaptiveTaskGraphSkill, getAgentCompleteHook, getAgentFactoryTemplate, getAgentLocks, getAgentRegistryTemplate, getAgentSummary, getAgentsMdTemplate, getAimlArchitectTemplate, getAllPermissionSummary, getApiDesignSkill, getAutoCheckpointHook, getAvailableDomains, getBoardCommand, getBrainstormingSkill, getBrownfieldAnalysisSkill, getBrownfieldDiscoverySkill, getClaudeMdTemplate, getCodeGenSkill, getCoordinatorFactoryTemplate, getDashboardHtml, getDebuggingSkill, getDeepResearchAgentTemplate, getDeepResearchSkill, getDeploymentSkill, getDocCheckerScript, getDockerfileTemplate, getDocumentationSkill, getDomainConfigYaml, getFileLockHookScript, getFishiYamlTemplate, getGateCommand, getGateManagerScript, getGitignoreAdditions, getInitCommand, getLearningsManagerScript, getLockSummary, getMarketplaceArchitectTemplate, getMasterOrchestratorTemplate, getMcpJsonTemplate, getMemoryManagerScript, getMobileArchitectTemplate, getModelRoutingReference, getMonitorEmitterScript, getPattern, getPatternCategories, getPatternsByCategory, getPermissionsForRole, getPhaseRunnerScript, getPostEditHook, getPrdCommand, getPrdSkill, getProjectYamlTemplate, getResetCommand, getResumeCommand, getSaasArchitectTemplate, getSafetyCheckHook, getSandboxPolicyTemplate, getScanRules, getSessionStartHook, getSettingsJsonTemplate, getSoulMdTemplate, getSprintCommand, getStatusCommand, getTaskboardOpsSkill, getTaskboardUpdateHook, getTestingSkill, getTodoManagerScript, getValidateScaffoldScript, getVibeModeConfig, getWorktreeManagerScript, getWorktreeSetupHook, marketingAgentTemplate, mergeClaudeMd, mergeClaudeMdTop, mergeGitignore, mergeMcpJson, mergeSettingsJson, opsLeadTemplate, planningAgentTemplate, planningLeadTemplate, qualityLeadTemplate, readDomainConfig, readFileLocks, readMonitorState, readSandboxConfig, readSandboxPolicy, readSelectedPatterns, releaseLocks, researchAgentTemplate, runBrandGuardian, runInDockerSandbox, runInProcessSandbox, runInSandbox, runSecurityScan, saveSelectedPatterns, searchPatterns, securityAgentTemplate, startDevServer, testingAgentTemplate, uiuxAgentTemplate, writingAgentTemplate };
|