← Về thư mục
frontend/src/features/autocomplete/rank.ts
- AcItem · type · L9-L13 — type AcItem = { label: string; insert: string; sub: string; };
- ArtifactLike · type · L18-L25 — type ArtifactLike = { filename?: string | null; artifact_id?: string | null; id?: string | null; version_id?: string | null; root_frame_id?: string | null; content_type?: string | null; };
- mergeArtifactCandidates · function · L32-L46 — function mergeArtifactCandidates( projectList: ArtifactLike[], sessionList: ArtifactLike[], ): ArtifactLike[]
- artifactToAcItem · function · L48-L64 — function artifactToAcItem( a: ArtifactLike, currentId: string | null, fromOtherSession: string, ): AcItem
- sessionToAcItem · function · L66-L72 — function sessionToAcItem(f: { name?: string | null; task_summary?: string | null; }): AcItem
- skillToAcItem · function · L74-L84 — function skillToAcItem(s: { displayName?: string | null; name?: string | null; description?: string | null; }): AcItem
- rankComposerItems · function · L87-L102 — function rankComposerItems( items: AcItem[], query: string, limit: number = AC_LIMIT, ): AcItem[]
- harvestBufferIdentifiers · function · L108-L123 — function harvestBufferIdentifiers( text: string, cap: number = EDITOR_SCAN_CAP, ): string[]
- rankEditorItems · function · L129-L152 — function rankEditorItems( keywords: readonly string[], bufferWords: readonly string[], query: string, keywordSub: string, limit: number = AC_LIMIT, ): AcItem[]
- push · function · L139-L148 — push = (list: readonly string[], sub: string): boolean