text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>: 'cpp', hpp: 'cpp', cs: 'csharp', java: 'java', kt: 'kotlin', scala: 'scala', go: 'go', rs: 'rust', swift: 'swift', dart: 'dart', // Others & fun stuff py: 'python', rb: 'ruby', pl: 'perl', lua: 'lua', r: 'r', sql: 'sql', tex: 'latex', }; /** * Normalises the extensio...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|> const isLastA = i === partsA.length - 1; const isLastB = i === partsB.length - 1; // If one is a file (last segment) and other is a folder (not last), folder comes first if (isLastA !== isLastB) { return isLastA ? 1 : -1; } // Same type at this level, compare alpha...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { createElement, FunctionComponentElement, SVGProps } from 'react'; import { TypeScript, JavaScript, Python, RustDark, RustLight, Go, Java, C, CPlusPlus, CSharp, Swift, Kotlin, Dart, Ruby, PHP, Lua, R, Scala, Elixir, HTML5, CSS3, Sass, JSON, Bash, P...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { PROJECTS_SHAPE, type Project } from 'shared/remote-types'; import { type OrganizationWithRole } from 'shared/types'; import { organizationsApi } from '@/shared/lib/api'; import { createShapeCollection } from '@/shared/lib/electric/collections'; import { getFirstProjectByOrder } from '@/shared/lib...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { createContext, type Context } from 'react'; /** * Creates a React context that preserves its identity across Vite H<|fim_suffix|>text value (same as createContext's argument) */ export function createHmrContext<T>(key: string, defaultValue: T): Context<T> { const existing = import.meta.hot?....
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>export type HostRequestScope = | { kind: 'current' } | { kind: 'local' } | { kind: 'host'; hostId: string }; export function resolveHostRequestScope( hostId?: string | null ): HostRequestScope { if (hostId === undefined) { return { kind: 'current' }; } if (hostId === null) { return...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>let seq = 0; export function genId():<|fim_suffix|>string { seq = (seq + 1) & 0xffff; return `${Date.now().toString(36)}-${seq.toString(36)}-${Math.random().toString(36).slice(2, 8)}`; } <|fim_middle|> <|endoftext|>
fim
BloopAI/vibe-kanban
typescript
import { EditorType } from 'shared/types'; import i18n from '@/i18n'; export function getIdeName(editorType: EditorType | undefined | null): string { if (!editorType) return 'IDE'; switch (editorType) { case EditorType.VS_CODE: return 'VS Code'; case EditorType.VS_CODE_INSIDERS: return 'VS Code...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { applyPatch, type Operation } from 'rfc6902'; export function applyUpsertPatch(target: object, ops: Operation[]): void { ops.forEach((op) => { const [error] = app<|fim_suffix|> 'replace' && error?.name === 'MissingError') { applyPatch(target, [{ ...op, op: 'add' }]); } }); } <|f...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { getCurrentHostId } from '@/shared/providers/HostIdProvider'; export type LocalApiHostScope = 'current' | 'explicit' | 'none'; export interface LocalApiRequestOptions extends RequestInit { hostScope?: LocalApiHostScope; hostId?: string | null; relayHostId?: string | null; } export interfa...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { Config, GetMcpServerResponse, GitBranch, McpServerQuery, Repo, UpdateMcpServersBody, UpdateRepo, UserSystemInfo, } from 'shared/types'; import type { AppRuntime } from '@/shared/hooks/useAppRuntime'; import { handleApiResponse } from './api'; import { makeLocalApiRequest, ...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { McpConfig, JsonValue } from 'shared/types'; type JsonObject = Record<string, JsonValue>; function isJsonObject(v: unknown): v is JsonObject { return typeof v === 'object' && v !== null && !Array.isArray(v); } export class McpConfigStrategyGeneral { static createFullConfig(cfg: McpConf...
fim
BloopAI/vibe-kanban
typescript
import type React from 'react'; import { hide, remove, show } from '@ebay/nice-modal-react'; import type { NiceModalHocProps } from '@ebay/nice-modal-react'; // Use this instead of {} to avoid ban-types export type NoProps = Record<string, never>; // Map P for component props: void -> NoProps; otherwise P type Compon...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>der, modelId: defaultId } = parseModelId( defaultModel, hasProviders ); if ( defaultId && (!providerId || !defaultProvider || providerId === defaultProvider) ) { const match = scoped.find((model) => model.id === defaultId); if (match) return match.id; } if (!defaultModel...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>..actor, text(' changed status on '), ...issueSegments]; case 'reactions': return [ ...actor, text(' reacted '), emphasis(formatCountLabel(group.notificationCount, 'time')), text(' on '), ...issueSegments, ]; case 'issue_deleted...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { Notification, NotificationGroupKind, NotificationPayload, NotificationType, } from 'shared/remote-types'; const GROUP_WINDOW_MS = 5 * 60 * 1000; export function getPayload(n: Notification): NotificationPayload { return n.payload ?? {}; } export function getDeeplinkPath(n: Notifi...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>spaceId; return `/projects/${projectId}`; }, attemptFull: (projectId: string, taskId: string, workspaceId: string) => { void taskId; void workspaceId; return `/projects/${projectId}`; }, }; <|fim_prefix|>export const paths = { projects: () => '/workspaces', projectTasks: (project...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>export function isMac(): boolean { // Modern API (Chrome, Edge) - not supported in Safari const nav = navigator as Navigator & { userAgentData?: { platform?: string }; }; if (nav.userAgentData?.platform) { return nav.userAgentData.platform === 'macOS'; } // Fallback for Safari and olde...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>'*'); } } } // Convenience function for quick setup export function listenToClickToComponent( handlers: EventHandlers ): ClickToComponentListener { const listener = new ClickToComponentListener(handlers); listener.start(); return listener; } <|fim_prefix|>export interface ComponentSource { ...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>dow) { iframe.contentWindow.postMessage(command, '*'); } } /** * Navigate back in the iframe's history */ navigateBack(): void { this.sendCommand({ source: PREVIEW_DEVTOOLS_SOURCE, type: 'navigate', payload: { action: 'back', }, }); } /**...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { Project } from 'shared/remote-types'; export function compareProjectsByOrder(a: Project, b: Project): number { const bySortOrder = a.sort_order - b.sort_order; if (bySortOrder !== 0) { return bySortOrder; } const byCreatedAt =<|fim_suffix|>reatedAt !== 0) { return byCreated...
fim
BloopAI/vibe-kanban
typescript
function isSlashCommandPrompt(prompt: string): boolean { const trimmed = prompt.trimStart(); if (!trimmed.startsWith('/')) return false; const match = /^\/([^\s/]+)(?:\s|$)/.exec(trimmed); if (!match) return false; return true; } export function buildAgentPrompt( rawUserMessage: string, contextParts: (...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { QueryCache, QueryClient } from '@tanstack/react-query'; export const queryClient = new QueryClient({ queryCache: new QueryCache({ onError: (error, query) => { console.error('<|fim_suffix|>y.queryKey, error: error, message: error instanceof Error ? error.message : Stri...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>onRecent.reverse(); } // Recent: sorted by recency (higher index = more recent) recent.sort((a, b) => (align === 'bottom' ? a.idx - b.idx : b.idx - a.idx)); if (align === 'top') { return [...recent.map((r) => r.model), ...nonRecent]; } return [...nonRecent, ...recent.map((r) => r.model)]...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { CreateRemoteSessionResponse } from 'shared/remote-types'; import type { FinishSpake2EnrollmentRequest, FinishSpake2EnrollmentResponse, RefreshRelaySigningSessionResponse, StartSpake2EnrollmentRequest, StartSpake2EnrollmentResponse, } from 'shared/types'; import { getAuthRuntime } f...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>tOs} (${toTitleCase(clientDevice)})`; return { clientId: crypto.randomUUID(), clientName, clientBrowser, clientOs, clientDevice, }; } function detectBrowser(userAgent: string): string { if (/Edg\//.test(userAgent)) return 'Edge'; if (/OPR\//.test(userAgent)) return 'Opera'; ...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>const DB_NAME = 'vk-relay-pairing'; const DB_VERSION = 1; const PAIRED_HOSTS_STORE = 'paired_hosts'; type RelayPairingChangeType = 'saved' | 'removed'; export interface RelayPairingChange { hostId: string; type: RelayPairingChangeType; } type RelayPairingChangeListener = (change: RelayPairingChange...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { ed25519 } from '@noble/curves/ed25519'; const ENCODER = new TextEncoder(); const SPAKE2_CLIENT_ID = ENCODER.encode('vibe-kanban-browser'); const SPAKE2_SERVER_ID = ENCODER.encode('vibe-kanban-server'); const KEY_CONFIRMATION_INFO = ENCODER.encode('key-confirmation'); const CLIENT_PROOF_CONTEXT...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { RelaySigningSessionRefreshPayload } from '@/shared/lib/relayBackendApi'; const TEXT_ENCODER = new TextEncoder(); export function buildRelaySigningSessionRefreshMessage( timestamp: number, nonce: string, clientId: string ): string { return `v1|refresh|${timestamp}|${nonce}|${clientI...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|> xhr.upload.addEventListener('progress', (e) => { if (e.lengthComputable) { onProgress(Math.round((e.loaded / e.total) * 100)); } }); } xhr.onload = () => { if (xhr.status === 201) { resolve(); } else { reject( new Error( ...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { IssueRelationship, Issue } from 'shared/remote-types'; export type RelationshipDisplayType = | 'blocks' | 'blocked_by' | 'related' | 'duplicate_of' | 'duplicated_by'; export interface ResolvedRelationship { relationshipId: string; displayType: RelationshipDisplayType; relat...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>export type AppDestination = | { kind: 'root' } | { kind: 'onboarding' } | { kind: 'onboarding-sign-in' } | { kind: 'workspaces'; hostId?: string } | { kind: 'workspaces-create'; hostId?: string } | { kind: 'workspace'; workspaceId: string; hostId?: string } | { kind: 'workspace-vscode'; wor...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>interface ScriptPlaceholders { setup: string; dev: string; cleanup: string; archive: string; } interface ScriptPlacehold<|fim_suffix|>tPlaceholderStrategy { if (osType.toLowerCase().includes('windows')) { return new WindowsScriptPlaceholderStrategy(); } return new UnixScriptPlaceholderS...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>lable if (query.length > 0) { let fileResults: SearchResult[] = []; if (options?.repoIds && options.repoIds.length > 0) { fileResults = await searchApi.searchFiles(options.repoIds, query); } if (fileResults.length > 0) { const fileSearchResults: FileSearchResult[] = fileResu...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>ler. * * Messages are batched per animation frame and applied using immer for * structural sharing, avoiding a full deep clone on every message. */ export function streamJsonPatchEntries<E = unknown>( url: string, opts: StreamOptions<E> = {} ): StreamController<E> { let connected = false; let ...
fim
BloopAI/vibe-kanban
typescript
/** * Converts SCREAMING_SNAKE_CASE to "Pretty Case" * @param value - The string to convert * @returns Formatted string with proper capitalization */ export const toPrettyCase = (value: string): string => { return value .split('_') .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>', blue: '#7aa2f7', magenta: '#bb9af7', cyan: '#7dcfff', white: '#c0caf5', brightBlack: '#545c7e', brightRed: redHex, brightGreen: greenHex, brightYellow: '#e0af68', brightBlue: '#7aa2f7', brightMagenta: '#bb9af7', brightCyan: '#7dcfff', ...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>n the theme mode setting. * Handles system theme detection properly. */ export function getActualTheme( themeMode: ThemeMode | undefined ): 'light' | 'dark' { if (!themeMode || themeMode === ThemeMode.LIGHT) { return 'light'; } if (themeMode === ThemeMode.SYSTEM) { // Check system prefe...
fim
BloopAI/vibe-kanban
typescript
import { ExecutionProcess, NormalizedEntry, ExecutionProcessStatus, } from 'shared/types'; export type AttemptData = { processes: ExecutionProcess[]; runningProcessDetails: Record<string, ExecutionProcess>; }; export interface ConversationEntryDisplayType { entry: NormalizedEntry; processId: string; p...
fim
BloopAI/vibe-kanban
typescript
import { type ClassValue, clsx } from 'clsx'; // import { twMerge } from 'tailwind-merge'; export function cn(...inputs: ClassValue[]) { // TODO: Re-enable twMerge after migration to tailwind v4 // Doesn't support de-duplicating custom classes, eg text-brand and text-base // return twMerge(clsx(inputs)); retur...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|> = { type: 'item-location', location: INITIAL_TOP_ITEM, }; <|fim_prefix|>import type { ScrollModif<|fim_middle|>ier } from '@virtuoso.dev/message-list'; export const INITIAL_TOP_ITEM = { index: 'LAST' as const, align: 'end' as const, }; export const InitialDataScrollModifier: ScrollModifier = { ...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>tring | null): boolean { return mimeType?.startsWith('image/') ?? false; } export function buildAttachmentMarkdown(attachment: { name: string; src: string; mimeType?: string | null; }): string { const label = escapeMarkdownLabel(attachment.name); if (isImageMimeType(attachment.mimeType)) { ...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>return null; const trimmedDescription = description?.trim(); return trimmedDescription ? `${trimmedTitle}\n\n${trimmedDescription}` : trimmedTitle; } export function buildLinkedIssueCreateState( issue: LinkedIssueSource | null | undefined, projectId: string ): NonNullable<CreateModeIniti...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>s (if projectId provided and valid repos exist) * 2. Most recent workspace for the same project (if projectId provided) * 3. Globally most recent workspace * 4. null (no defaults) */ export async function getWorkspaceDefaults( remoteWorkspaces: Workspace[], localWorkspaceIds: Set<string>, projec...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>const ZOOM_STORAGE_KEY = 'vk-zoom-level'; const DEFAULT_FO<|fim_suffix|>unavailable } } function applyFontSize(size: number): void { document.documentElement.style.fontSize = `${size}px`; } let currentFontSize = DEFAULT_FONT_SIZE; export function zoomIn(): void { currentFontSize = Math.min(curren...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|> projectMutations ?? undefined, remoteWorkspaces: (() => { const userWs = userCtx?.workspaces ?? []; const projectWs = projectCtx?.workspaces ?? []; if (projectWs.length === 0) return userWs; if (userWs.length === 0) return projectWs; const seen = new Set(user...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import React, { useMemo } from 'react'; import { useExecutionProcesses } from '@/shared/hooks/useExecutionProcesses'; import type { ExecutionProcess } from 'shared/types'; import { ExecutionProcessesContext, type ExecutionProcessesContextType, } from '@/shared/h<|fim_suffix|>executionProcessesByIdAll:...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { createContext, useContext, useLayoutEffect, useMemo, type ReactNode, } from 'react'; import { useCurrentAppDestination } from '@/shared/hooks/useCurrentAppDestina<|fim_suffix|>ext.Provider> ); } <|fim_middle|>tion'; import { getDestinationHostId } from '@/shared/lib/routes/appNavigati...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { useState, useCallback, useEffect, useMemo, useRef, type ReactNode, } from 'react'; import type { LogsPanelContent } from '@/shared/types/actions'; import { useWorkspacePanelState, RIGHT_MAIN_PANEL_MODES, } from '@/shared/stores/useUiPreferencesStore'; import { useWorkspaceContext ...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|> ); return ( <SyncErrorContext.Provider value={value}> {children} </SyncErrorContext.Provider> ); } <|fim_prefix|>import { useState, useCallback, useMemo, useEffect, type ReactNode, } from 'react'; import type { SyncError } from '@/shared/lib/electric/types'; import { SyncE...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { useReducer, useMemo, useCallback, useRef, ReactNode } from 'react'; import type { Terminal } from '@xterm/xterm'; import type { FitAddon } from '@xterm/addon-fit'; import { TerminalContext, type TerminalTab, type TerminalInstance, } from '@/shared/hooks/useTerminal'; import { openLocalApiWe...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { ReactNode, useMemo, useCallback, useEffect, useRef } from 'react'; import { useParams } from '@tanstack/react-router'; import { useQueryClient } from '@tanstack/react-query'; import { useWorkspaces } from '@/shared/hooks/useWorkspaces'; import { workspaceSummaryKeys } from '@/shared/<|fim_suffix|...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { useMemo, type ReactNode } from 'react'; import { AuthContext, type AuthContextValue, } from '@/shared/hooks/auth/useAuth'; import { useUserSystem } from '@/shared/hooks/useUserSystem'; interface LocalAuthProviderProps { children: ReactNode; } exp<|fim_suffix|>ull, }), [loginStatus...
fim
BloopAI/vibe-kanban
typescript
import { useMemo, useCallback, type ReactNode } from 'react'; import { useQuery } from '@tanstack/react-query'; import { useShape } from '@/shared/integrations/electric/hooks'; import { PROJECTS_SHAPE, PROJECT_MUTATION, type Project, } from 'shared/remote-types'; import type { OrganizationMemberWithProfile } from...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>Id: string) => { const issueTags = issueTagsResult.data.filter( (t) => t.issue_id === issueId ); return issueTags .map((it) => tagsById.get(it.tag_id)) .filter((t): t is Tag => t !== undefined); }, [issueTagsResult.data, tagsById] ); const getRelation...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { useMemo, useCallback, type ReactNode } from 'react'; import { useShape } from '@/shared/integrations/electric/hooks'<|fim_suffix|>shared/remote-types'; import { useAuth } from '@/shared/hooks/auth/useAuth'; import { UserContext, type UserContextValue, } from '@/shared/hooks/useUserContext'; ...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { create } from 'zustand'; type State = { /** Non-null when a new version has been downloaded and i<|fim_suffix|>rsion, restart) => set({ updateVersion: version, restart }), })); <|fim_middle|>s ready to install. */ updateVersion: string | null; /** Callback to restart the app. Set by the pl...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|> // Don't persist diffPaths as it's transient state partialize: (state) => ({ mode: state.mode, ignoreWhitespace: state.ignoreWhitespace, wrapText: state.wrapText, }), } ) ); export const useDiffViewMode = () => useDiffViewStore((s) => s.mode); export const...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>=> { const next = !(s.expanded[key] ?? fallback); return { expanded: { ...s.expanded, [key]: next } }; }), clear: () => set({ expanded: {} }), })); export function useExpandable( key: string, defaultValue = false ): [boolean, (next?: boolean) => void] { const expandedValue = useEx...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { create } from 'zustand'; interface FileInViewState { fileInView: <|fim_suffix|>leInViewStore = create<FileInViewState>()((set) => ({ fileInView: null, setFileInView: (path) => set((s) => (s.fileInView === path ? s : { fileInView: path })), })); export const useFileInView = () => useFi...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|> selectedIssueIds: new Set(rangeIds), cursorIssueId: targetIssueId, }); }, selectAdjacent: ( direction: 'up' | 'down', fallbackIssueId?: string | null ) => { const { anchorIssueId, cursorIssueId, orderedIssueIds, selectedIssu...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>nIssueComposer(composerKey: string): void { useKanbanIssueComposerStore.getState().resetComposer(composerKey); } export function closeKanbanIssueComposer(composerKey: string): void { useKanbanIssueComposerStore.getState().closeComposer(composerKey); } <|fim_prefix|>import { useCallback } from 'react'...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { create } from 'zustand'; import { persist } from 'zustand/middleware'; import { useUiPreferencesStore } from './useUiPreferencesStore'; type State = { selectedOrgId: string | null; setSelectedOrgId: (orgId: s<|fim_suffix|>Id }), } ) ); // Sync org store changes into the UI preferences...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { useCallback, useMemo, useRef } from 'react'; import { create } from 'zustand'; import type { RepoAction } from '@vibe/ui/components/RepoCard'; import type { IssuePriority } from 'shared/remote-types'; export const RIGHT_MAIN_PANEL_MODES = { CHANGES: 'changes', LOGS: 'logs', PREVIEW: 'previ...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import { create } from 'zustand'; import type { Diff, DiffStats, UnifiedPrComment } from 'shared/types'; import type { NormalizedGitHubComment } from '@/shared/hooks/useWorkspaceContext'; // --------------------------------------------------------------------------- // Zustand store for workspace diff da...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { Icon } from '@phosphor-icons/react'; import type { QueryClient } from '@tanstack/react-query'; import type { EditorType, ExecutionProcess, Workspace, PatchType, } from 'shared/types'; import type { Workspace as RemoteWorkspace } from 'shared/remote-types'; import type { DiffViewMode ...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|> ...workspace, session, }; } <|fim_prefix|>import type { Workspace, Session } from 'shared/types'; /** * WorkspaceWithSession includes the latest Session for the workspace. * Provides access to session.id, session.executor, etc. */ export type WorkspaceWithSession = Workspace & { session: Sess...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { Icon } from '@phosphor-icons/react'; import type { Issue } from 'shared/remote-types'; import type { ActionDefinition, ActionVisibilityContext } from './actions'; import type { RepoItem, StatusItem, PriorityItem, BranchItem, } from '@/shared/types/selectionItems'; // Define page IDs...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>orConfig } from 'shared/types'; export interface LinkedIssue { issueId: string; simpleId?: string; title?: string; remoteProjectId: string; } export interface CreateModeInitialState { initialPrompt?: string | null; preferredRepos?: Array<{ repo_id: string; target_branch: string | nul...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>. */ export enum DiffSide { Old = 0, New = 1, } <|fim_prefix|>/** * Represents which side of a diff (old/deletions or new/additions). * This matches the SplitSide en<|fim_middle|>um from @git-diff-view/react (Old=0, New=1) * but allows us to decouple from that library<|endoftext|>
fim
BloopAI/vibe-kanban
typescript
import type { Diff, DiffChangeKind } from 'shared/types'; export type TreeNodeType = 'file' | 'folder'; export interface TreeNode { id: string; name: string; path: string; type: TreeNodeType; children?: TreeNode[]; diff?: Diff; changeKind?: DiffChangeKind; additions?: number | null; deletions?: numb...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { NormalizedEntry, ExecutorAction } from 'shared/types'; export interface UnifiedL<|fim_suffix|>: string; action?: ExecutorAction; } <|fim_middle|>ogEntry { id: string; ts: number; // epoch-ms timestamp for sorting and react-window key processId: string; processName: string; chann...
fim
BloopAI/vibe-kanban
typescript
import { TaskWithAttemptStatus, Workspace } from 'shared/types'; // Extend nice-modal-react to provide type safety for modal arguments declare module '@ebay/nice-modal-react' { interface ModalArgs { 'create-pr': { attempt: Workspace; task: TaskWithAttemptStatus; projectId: string; }; } } ...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>import type { ConfirmDialogProps } from '@/shared/dialogs/shared/ConfirmDialog'; import type { EditorSelectionDialogProps } from '@/shared/dialogs/command-bar/Edit<|fim_suffix|>/ Note: 'create-pr' is declared in modal-args.d.ts declare module '@ebay/nice-modal-react' { interface ModalArgs { // Gener...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>// Message source identifier export const PREVIEW_DEVTOOLS_SOURCE = 'vibe-devtools' as const; export type PreviewDevToolsSource = typeof PREVIEW_DEVTOOLS_SOURCE; // === Entry Types (for state management) === export interface NavigationState { url: stri<|fim_suffix|>eadyMessage; export type PreviewDev...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>tyItem { id: IssuePriority | null; name: string; } export interface BranchItem { name: string; isCurrent: boolean; } <|fim_prefix|>import type { Issue<|fim_middle|>Priority } from 'shared/remote-types'; export interface RepoItem { id: string; display_name: string; } export interface StatusI...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>w'; <|fim_prefix|>e<|fim_middle|>xport type TabType = 'logs' | 'diffs' | 'processes' | 'previe<|endoftext|>
fim
BloopAI/vibe-kanban
typescript
import '@tanstack/history'; declare module '@tanstack/history' { interface HistoryState { [key: string]: unknown; } } <|endoftext|>
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>declare module 'virtual:e<|fim_suffix|>ls'; import type { BaseCodingAgent } from '@/shared/types'; const schemas: Record<BaseCodingAgent, RJSFSchema>; export { schemas }; export default schemas; } <|fim_middle|>xecutor-schemas' { import type { RJSFSchema } from '@rjsf/uti<|endoftext|>
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>ASE_URL?: string; } declare const __APP_VERSION__: string; <|fim_prefix|>/// <reference types="vite/client" /> in<|fim_middle|>terface ImportMetaEnv { readonly VITE_VK_SHARED_API_BASE?: string; readonly VITE_RELAY_API_B<|endoftext|>
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>uts[Object.keys(result.metafile.outputs)[0]].bytes; const kb = (outBytes / 1024).toFixed(1); if (outBytes > 50 * 1024) { console.error(`\n❌ Bundle too large: ${kb} KB (limit: 50 KB)`); process.exit(1); } console.log(`\n✅ bippy bundle built: ${OUT_FILE} (${kb} KB)`); } finally { try { ...
fim
BloopAI/vibe-kanban
javascript
<|fim_prefix|>#!/usr/bin/env node /** * Build MSI installer for Windows using wixl (from msitools). * * Processes the WiX template (crates/tauri-app/msi-template.wxs), * replaces template variables with actual values, and invokes wixl * to produce an MSI file. * * Usage: * node scripts/build-tauri-msi.js --ta...
fim
BloopAI/vibe-kanban
javascript
<|fim_prefix|>#!/usr/bin/env node /** * Checks for unused i18n translation keys. * * Scans the English locale JSON files and verifies that every leaf key is * referenced somewhere in the TypeScript/React source code. Keys that are * only reachable via dynamic patterns (template-literal prefixes, i18next * plural...
fim
BloopAI/vibe-kanban
javascript
<|fim_prefix|>#!/usr/bin/env node // // Generates a desktop-manifest.json for the NPX CLI auto-install flow. // This manifest tells the CLI where to download the Tauri desktop app // bundle for each platform, along with SHA256 checksums for verification. // // Usage: // node scripts/generate-desktop-manifest.js \ // ...
fim
BloopAI/vibe-kanban
javascript
#!/usr/bin/env node // // Generates a Tauri v2 updater `latest.json` from build artifacts. // // Usage: // node scripts/generate-tauri-update-json.js \ // --version 0.2.0 \ // --notes "Bug fixes" \ // --artifacts-dir ./tauri-artifacts \ // --download-base "https://github.com/BloopAI/vibe-kanban/releas...
fim
BloopAI/vibe-kanban
javascript
<|fim_suffix|>toAbs = path.join(remoteSrcRoot, toRel); const fromExists = fs.existsSync(fromAbs); const toExists = fs.existsSync(toAbs); if (!fromExists && toExists) { verbose(`skip move (already moved): ${fromRel} -> ${toRel}`); return; } if (!fromExists && !toExists) { throw new Error(`missing...
fim
BloopAI/vibe-kanban
javascript
<|fim_suffix|> env: { ...process.env, DATABASE_URL: databaseUrl } }); // Prepare queries const sqlxCommand = checkMode ? 'cargo sqlx prepare --check' : 'cargo sqlx prepare'; console.log(checkMode ? 'Checking prepared queries...' : 'Preparing queries...'); execSync(sqlxCommand, { stdio: 'inherit', env...
fim
BloopAI/vibe-kanban
javascript
<|fim_suffix|> rewrittenSpecifiers += replacements.length; rewrittenFileDetails.push({ file: path.relative(repoRoot, file), replacements: replacements.length, }); if (APPLY) { fs.writeFileSync(file, nextText); } } const htmlFiles = walkHtml(webRoot); let rewrittenHtmlFiles = 0; let rewrittenHtmlRe...
fim
BloopAI/vibe-kanban
javascript
<|fim_suffix|>istingPorts.frontend}`); console.log(`Backend: ${existingPorts.backend}`); console.log(`Preview Proxy: ${existingPorts.preview_proxy}`); } return existingPorts; } else { if (process.argv[2] === "get") { console.log( "Existing ports are no longer avai...
fim
BloopAI/vibe-kanban
javascript
<|fim_prefix|>i<|fim_suffix|> } = jwtDecode<AccessTokenClaims>(token); if (aud !== ACCESS_TOKEN_AUD) return null; if (!Number.isFinite(exp)) return null; return exp * 1000; } catch { return null; } }; export const shouldRefreshAccessToken = (token: string): boolean => { const expiresAt = getToken...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>// This file was auto-generated by generate_types in the remote crate. // Do not edit manually. // Electric row types export type JsonValue = number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null; export type Project = { id: string, organization_id: string, name: string, ...
fim
BloopAI/vibe-kanban
typescript
<|fim_prefix|>// This file was generated by `crates/core/src/bin/generate_types.rs`. // Do not edit this file manually. // If you are an AI, and you absolutely have to edit this file, please confirm with the user first. export type Repo = { id: string, path: string, name: string, display_name: string, setup_script: ...
fim
BloopAI/vibe-kanban
typescript
<|fim_suffix|>firm_resent')); return redirect('/register/confirm'); } } <|fim_prefix|><?php namespace BookStack\Access\Controllers; use BookStack\Access\EmailConfirmationService; use BookStack\Access\LoginService; use BookStack\Exceptions\ConfirmationEmailException; use BookStack\Exceptions\UserTokenExpi...
fim
BookStackApp/BookStack
php
<|fim_suffix|> if (in_array($response, [Password::RESET_LINK_SENT, Password::INVALID_USER, Password::RESET_THROTTLED])) { $message = trans('auth.reset_password_sent', ['email' => $request->input('email')]); $this->showSuccessNotification($message); return redirect('/password/ema...
fim
BookStackApp/BookStack
php
<|fim_prefix|><?php namespace BookStack\Access\Controllers; use BookStack\Access\LoginService; use BookStack\Exceptions\NotFoundException; use BookStack\Users\Models\User; trait HandlesPartialLogins { /** * @throws NotFoundException */ protected function currentOrLastAttemptedUser(): User { ...
fim
BookStackApp/BookStack
php
<|fim_prefix|><?php namespace BookStack\Access\Controllers; use BookStack\Access\LoginService; use BookStack\Access\SocialDriverManager; use BookStack\Exceptions\LoginAttemptEmailNeededException; use BookStack\Exceptions\LoginAttemptException; use BookStack\Facades\Activity; use BookStack\Http\Controller; use Illumin...
fim
BookStackApp/BookStack
php
<?php namespace BookStack\Access\Controllers; use BookStack\Access\LoginService; use BookStack\Access\Mfa\BackupCodeService; use BookStack\Access\Mfa\MfaSession; use BookStack\Access\Mfa\MfaValue; use BookStack\Access\Mfa\MfaVerificationLimiter; use BookStack\Activity\ActivityType; use BookStack\Exceptions\NotFoundEx...
fim
BookStackApp/BookStack
php
<|fim_prefix|><?php namespace BookStack\Access\Controllers; use BookStack\Access\Mfa\MfaValue; use BookStack\Activity\ActivityType; use BookStack\Http\Controller; use Illuminate\Http\Request; class MfaController extends Controller { use HandlesPartialLogins; /** * Show the view to setup MFA for the cur...
fim
BookStackApp/BookStack
php
<|fim_suffix|> $this->validate($request, [ 'code' => [ 'required', 'max:12', 'min:4', new TotpValidationRule($totpSecret, $this->totp), ], ]); MfaValue::upsertWithValue($this->currentOrLastAttemptedUser(), MfaValue::METHOD_TOTP,...
fim
BookStackApp/BookStack
php
<?php namespace BookStack\Access\Controllers; use BookStack\Access\Oidc\OidcException; use BookStack\Access\Oidc\OidcService; use BookStack\Http\Controller; use Illuminate\Http\Request; class OidcController extends Controller { public function __construct( protected OidcService $oidcService ) { ...
fim
BookStackApp/BookStack
php