@qlucent/fishi-core 0.9.0 → 0.12.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 +116 -3
- package/dist/index.js +1257 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ type CostMode = 'performance' | 'balanced' | 'economy';
|
|
|
5
5
|
type ModelTier = 'opus' | 'sonnet' | 'haiku';
|
|
6
6
|
type TaskStatus = 'backlog' | 'ready' | 'in_progress' | 'review' | 'done' | 'blocked';
|
|
7
7
|
type GateStatus = 'pending' | 'approved' | 'rejected' | 'skipped';
|
|
8
|
-
type AgentRole = 'master' | 'coordinator' | 'worker';
|
|
8
|
+
type AgentRole$1 = 'master' | 'coordinator' | 'worker';
|
|
9
9
|
interface FishiConfig {
|
|
10
10
|
version: string;
|
|
11
11
|
project: ProjectConfig;
|
|
@@ -76,7 +76,7 @@ interface McpServerConfig {
|
|
|
76
76
|
interface AgentDefinition {
|
|
77
77
|
name: string;
|
|
78
78
|
description: string;
|
|
79
|
-
role: AgentRole;
|
|
79
|
+
role: AgentRole$1;
|
|
80
80
|
tools: string[];
|
|
81
81
|
model: ModelTier;
|
|
82
82
|
isolation?: 'worktree';
|
|
@@ -171,6 +171,16 @@ declare function writingAgentTemplate(ctx: TemplateContext): string;
|
|
|
171
171
|
|
|
172
172
|
declare function marketingAgentTemplate(ctx: TemplateContext): string;
|
|
173
173
|
|
|
174
|
+
declare function getSaasArchitectTemplate(): string;
|
|
175
|
+
|
|
176
|
+
declare function getMarketplaceArchitectTemplate(): string;
|
|
177
|
+
|
|
178
|
+
declare function getMobileArchitectTemplate(): string;
|
|
179
|
+
|
|
180
|
+
declare function getAimlArchitectTemplate(): string;
|
|
181
|
+
|
|
182
|
+
declare function getDeepResearchAgentTemplate(): string;
|
|
183
|
+
|
|
174
184
|
declare function getBrainstormingSkill(): string;
|
|
175
185
|
|
|
176
186
|
declare function getBrownfieldAnalysisSkill(): string;
|
|
@@ -201,6 +211,8 @@ declare function getAdaptiveTaskGraphSkill(): string;
|
|
|
201
211
|
*/
|
|
202
212
|
declare function getDocumentationSkill(): string;
|
|
203
213
|
|
|
214
|
+
declare function getDeepResearchSkill(): string;
|
|
215
|
+
|
|
204
216
|
/**
|
|
205
217
|
* Session Start Hook Template
|
|
206
218
|
*
|
|
@@ -435,6 +447,10 @@ declare function getGitignoreAdditions(): string;
|
|
|
435
447
|
|
|
436
448
|
declare function getModelRoutingReference(): string;
|
|
437
449
|
|
|
450
|
+
declare function getSoulMdTemplate(): string;
|
|
451
|
+
|
|
452
|
+
declare function getAgentsMdTemplate(): string;
|
|
453
|
+
|
|
438
454
|
/**
|
|
439
455
|
* Agent Factory Template
|
|
440
456
|
*
|
|
@@ -453,6 +469,33 @@ declare function getAgentFactoryTemplate(): string;
|
|
|
453
469
|
*/
|
|
454
470
|
declare function getCoordinatorFactoryTemplate(): string;
|
|
455
471
|
|
|
472
|
+
type ProjectDomain = 'saas' | 'marketplace' | 'mobile' | 'aiml' | 'general';
|
|
473
|
+
interface DomainConfig {
|
|
474
|
+
domain: ProjectDomain;
|
|
475
|
+
domainAgent: string | null;
|
|
476
|
+
researchEnabled: boolean;
|
|
477
|
+
}
|
|
478
|
+
declare const DOMAIN_INFO: Record<ProjectDomain, {
|
|
479
|
+
label: string;
|
|
480
|
+
description: string;
|
|
481
|
+
agent: string | null;
|
|
482
|
+
}>;
|
|
483
|
+
/**
|
|
484
|
+
* Get the list of available domains for selection.
|
|
485
|
+
*/
|
|
486
|
+
declare function getAvailableDomains(): {
|
|
487
|
+
value: ProjectDomain;
|
|
488
|
+
name: string;
|
|
489
|
+
}[];
|
|
490
|
+
/**
|
|
491
|
+
* Read domain config from fishi.yaml.
|
|
492
|
+
*/
|
|
493
|
+
declare function readDomainConfig(projectDir: string): DomainConfig;
|
|
494
|
+
/**
|
|
495
|
+
* Get the domain config YAML to append to fishi.yaml.
|
|
496
|
+
*/
|
|
497
|
+
declare function getDomainConfigYaml(domain: ProjectDomain): string;
|
|
498
|
+
|
|
456
499
|
type ConflictResolution = 'skip' | 'merge' | 'replace';
|
|
457
500
|
interface FileResolutionMap {
|
|
458
501
|
categories: Record<string, ConflictResolution>;
|
|
@@ -465,6 +508,7 @@ interface ScaffoldOptions extends InitOptions {
|
|
|
465
508
|
resolutions?: FileResolutionMap;
|
|
466
509
|
docsReadmeExists?: boolean;
|
|
467
510
|
rootClaudeMdExists?: boolean;
|
|
511
|
+
domain?: ProjectDomain;
|
|
468
512
|
}
|
|
469
513
|
interface ScaffoldResult {
|
|
470
514
|
agentCount: number;
|
|
@@ -705,10 +749,79 @@ declare function runBrandGuardian(projectDir: string, tokens: DesignTokens): Bra
|
|
|
705
749
|
*/
|
|
706
750
|
declare function generateDesignSystemConfig(tokens: DesignTokens, registry: ComponentRegistry): string;
|
|
707
751
|
|
|
752
|
+
type AgentRole = 'master' | 'coordinator' | 'worker';
|
|
753
|
+
interface AgentPermissionSet {
|
|
754
|
+
role: AgentRole;
|
|
755
|
+
allow: string[];
|
|
756
|
+
deny: string[];
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Get tool permissions for a specific agent role.
|
|
760
|
+
* Master: read-only + delegation. Coordinators: read/write + git. Workers: full dev in sandbox.
|
|
761
|
+
*/
|
|
762
|
+
declare function getPermissionsForRole(role: AgentRole): AgentPermissionSet;
|
|
763
|
+
/**
|
|
764
|
+
* Get all permission sets as a summary for display.
|
|
765
|
+
*/
|
|
766
|
+
declare function getAllPermissionSummary(): Record<AgentRole, {
|
|
767
|
+
allowCount: number;
|
|
768
|
+
denyCount: number;
|
|
769
|
+
}>;
|
|
770
|
+
/**
|
|
771
|
+
* Generate per-agent permission YAML block for settings.json or agent definition.
|
|
772
|
+
*/
|
|
773
|
+
declare function generatePermissionBlock(role: AgentRole): string;
|
|
774
|
+
|
|
775
|
+
type Severity = 'critical' | 'high' | 'medium' | 'low' | 'info';
|
|
776
|
+
interface SecurityFinding {
|
|
777
|
+
rule: string;
|
|
778
|
+
category: string;
|
|
779
|
+
severity: Severity;
|
|
780
|
+
file: string;
|
|
781
|
+
line: number;
|
|
782
|
+
code: string;
|
|
783
|
+
message: string;
|
|
784
|
+
fix: string;
|
|
785
|
+
cwe?: string;
|
|
786
|
+
}
|
|
787
|
+
interface SecurityReport {
|
|
788
|
+
findings: SecurityFinding[];
|
|
789
|
+
summary: {
|
|
790
|
+
critical: number;
|
|
791
|
+
high: number;
|
|
792
|
+
medium: number;
|
|
793
|
+
low: number;
|
|
794
|
+
info: number;
|
|
795
|
+
total: number;
|
|
796
|
+
filesScanned: number;
|
|
797
|
+
passed: boolean;
|
|
798
|
+
};
|
|
799
|
+
scanDate: string;
|
|
800
|
+
projectDir: string;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Scan a project for security vulnerabilities.
|
|
804
|
+
*/
|
|
805
|
+
declare function runSecurityScan(projectDir: string): SecurityReport;
|
|
806
|
+
/**
|
|
807
|
+
* Generate a markdown security report.
|
|
808
|
+
*/
|
|
809
|
+
declare function generateSecurityReport(report: SecurityReport): string;
|
|
810
|
+
/**
|
|
811
|
+
* Get the list of scan rules for display.
|
|
812
|
+
*/
|
|
813
|
+
declare function getScanRules(): {
|
|
814
|
+
id: string;
|
|
815
|
+
category: string;
|
|
816
|
+
severity: Severity;
|
|
817
|
+
message: string;
|
|
818
|
+
cwe?: string;
|
|
819
|
+
}[];
|
|
820
|
+
|
|
708
821
|
declare function getSandboxPolicyTemplate(): string;
|
|
709
822
|
|
|
710
823
|
declare function getDockerfileTemplate(): string;
|
|
711
824
|
|
|
712
825
|
declare function getDashboardHtml(): string;
|
|
713
826
|
|
|
714
|
-
export { type AgentDefinition, type 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, type DesignTokens, type DetectionCheck, type DetectionResult, type DevServerConfig, 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 ProjectType, type ProjectYamlOptions, type SandboxConfig, type SandboxMode, type SandboxPolicy, type SandboxRunResult, type ScaffoldOptions, type ScaffoldResult, 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, generateScaffold, getAdaptiveTaskGraphSkill, getAgentCompleteHook, getAgentFactoryTemplate, getAgentRegistryTemplate, getAgentSummary, getApiDesignSkill, getAutoCheckpointHook, getBoardCommand, getBrainstormingSkill, getBrownfieldAnalysisSkill, getBrownfieldDiscoverySkill, getClaudeMdTemplate, getCodeGenSkill, getCoordinatorFactoryTemplate, getDashboardHtml, getDebuggingSkill, getDeploymentSkill, getDocCheckerScript, getDockerfileTemplate, getDocumentationSkill, getFishiYamlTemplate, getGateCommand, getGateManagerScript, getGitignoreAdditions, getInitCommand, getLearningsManagerScript, getMasterOrchestratorTemplate, getMcpJsonTemplate, getMemoryManagerScript, getModelRoutingReference, getMonitorEmitterScript, getPhaseRunnerScript, getPostEditHook, getPrdCommand, getPrdSkill, getProjectYamlTemplate, getResetCommand, getResumeCommand, getSafetyCheckHook, getSandboxPolicyTemplate, getSessionStartHook, getSettingsJsonTemplate, getSprintCommand, getStatusCommand, getTaskboardOpsSkill, getTaskboardUpdateHook, getTestingSkill, getTodoManagerScript, getValidateScaffoldScript, getVibeModeConfig, getWorktreeManagerScript, getWorktreeSetupHook, marketingAgentTemplate, mergeClaudeMd, mergeClaudeMdTop, mergeGitignore, mergeMcpJson, mergeSettingsJson, opsLeadTemplate, planningAgentTemplate, planningLeadTemplate, qualityLeadTemplate, readMonitorState, readSandboxConfig, readSandboxPolicy, researchAgentTemplate, runBrandGuardian, runInDockerSandbox, runInProcessSandbox, runInSandbox, securityAgentTemplate, startDevServer, testingAgentTemplate, uiuxAgentTemplate, writingAgentTemplate };
|
|
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 };
|