Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created November 28, 2025 02:24
Show Gist options
  • Select an option

  • Save johnlindquist/de54a48e67f0b8be8fe77ab524959f6c to your computer and use it in GitHub Desktop.

Select an option

Save johnlindquist/de54a48e67f0b8be8fe77ab524959f6c to your computer and use it in GitHub Desktop.
Cached Codemap: kit-container - Electron app with IPC, prompts, and script execution
{
"version": 1,
"repoPath": "/Users/johnlindquist/dev/kit-container",
"repoName": "kit-container",
"createdAt": "2025-11-27T20:03:41.135Z",
"lastValidatedAt": "2025-11-27T20:03:41.135Z",
"gitCommitHash": "fdfd83ac13e4e2f4896e18f0aa564eeac968f7ac",
"codemap": "<prompt>\n <files>\n <file path=\".cursorignore\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"postmoterms/prompt-struggles.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"analyze-trace-detailed.js\" type=\"javascript\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"test-action-locally.sh\" type=\"bash\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"onaction-investigation-bundle.md\" type=\"markdown\" format=\"codemap\">\nfunction updateFields(channel)\nfunction createTraceFunction(eventType: 'B' | 'E' | 'I')\nfunction scorer(string: string, query: string, matches: number[][])\nfunction sortArrayByIndex(arr)\nexport function buildScriptConfig(message: string | PromptConfig): PromptConfig\n </file>\n <file path=\"test6.txt\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"prompt-focus-expert-bundle.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\".cursor/rules/app-electron-ipc-strict.mdc\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\".cursor/rules/app-no-dynamic-require.mdc\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\".cursor/rules/container.mdc\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\".cursor/rules/derived-cursor-rules.mdc\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\".cursor/rules/app-typescript-style.mdc\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\".cursor/rules/app-shortcuts-tracing.mdc\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\".cursor/commands/save-diagram.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\".cursor/mcp.json\" type=\"json\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"get-ai-container/bin/get-ai-container.js\" type=\"javascript\" format=\"codemap\">\nfunction log(message, color = colors.reset) {\nfunction error(message) {\nfunction success(message) {\nfunction info(message) {\nfunction warning(message) {\nasync function main() {\nfunction copyDirectory(src, dest) {\n </file>\n <file path=\"get-ai-container/.devcontainer/Dockerfile\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"get-ai-container/.devcontainer/init-firewall.sh\" type=\"bash\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"get-ai-container/.devcontainer/devcontainer.json\" type=\"json\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"get-ai-container/package.json\" type=\"json\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"get-ai-container/.vscode/settings.json\" type=\"json\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"test4.txt\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"x-blog-post.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/script-loading-analysis.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/input.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/snippet-prefix-bug.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/send-result-image.md\" type=\"markdown\" format=\"codemap\">\nfunction safeStringify(obj: any, space?: string | number): string {\nfunction patchMcpTransports() {\n </file>\n <file path=\"investigations/test-schedule-behavior.ts\" type=\"typescript\" format=\"codemap\">\nasync function logEvent(event: string) {\n </file>\n <file path=\"investigations/running-scripts.md\" type=\"markdown\" format=\"codemap\">\nclass ProcessFactory {\nclass MessageRouter {\nclass PoolManager {\nenum ProcessState {\nclass ProcessLifecycle {\nclass CleanupCoordinator {\n </file>\n <file path=\"investigations/sdk-path-references.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/panel-to-window-migration.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/event-system-and-state-management.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/postfix-snippet-debug-analysis.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/how-tailwind-is-compiled-and-what-classes-are-available-to-all-the-prompts.md\" type=\"markdown\" format=\"codemap\">\nexport interface ThemeConfig {\nexport class ThemeManager {\n </file>\n <file path=\"investigations/mcp-spec-adherence.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/window-creation-patterns.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/path-findings.md\" type=\"markdown\" format=\"codemap\">\ninterface PathConfig {\n </file>\n <file path=\"investigations/uiohook-subprocess-investigation.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/mcp-feature-priorities.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/event-system-and-reactive-state-management.md\" type=\"markdown\" format=\"codemap\">\nclass ChoiceWindow {\n </file>\n <file path=\"investigations/mcp-tool-hot-reload-implementation.md\" type=\"markdown\" format=\"codemap\">\nexport enum KitEvent {\n </file>\n <file path=\"investigations/file-system-watcher-and-hot-reload.md\" type=\"markdown\" format=\"codemap\">\nexport class WatcherManager {\nclass CooldownManager {\nclass ChangeCollector {\nclass EventQueue {\nclass WatcherHealth {\ninterface CircuitBreakerInfo {\nclass CircuitBreaker {\nclass WatcherManager {\n </file>\n <file path=\"investigations/linux-arm64-ci-failures.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/pnpm-global-usage-investigation.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/panels-investigation.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/sdk-module-resolution.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/install.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/file-watcher-when-to-ignore.md\" type=\"markdown\" format=\"codemap\">\nenum ChangeSource {\n </file>\n <file path=\"investigations/snippet-fix-summary.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/multi-monitor-escape-fix.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/schedule-deep-research.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/multi-monitor-escape-fix-v2.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/postfix-snippet-final-analysis.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/get-scripts-formatting.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/widget-system-architecture-and-performance.md\" type=\"markdown\" format=\"codemap\">\nclass WidgetPool {\nclass WidgetMonitor {\nfunction updateWidgetState(widgetId: string, newState: any) {\n </file>\n <file path=\"investigations/memory-management-and-leaks.md\" type=\"markdown\" format=\"codemap\">\nclass LRUCache<K, V> {\nclass CleanupRegistry {\nclass ResourcePool<T> {\nclass MemoryMonitor {\ninterface Disposable {\nclass ProcessInfo implements Disposable {\nclass AutoCleanupMap<K, V> extends Map<K, V> {\n </file>\n <file path=\"investigations/react-phase2.md\" type=\"markdown\" format=\"codemap\">\nfunction MyForm() {\nexport function useSubmit() {\nexport function useKitSubmit() {\nexport function ReactContainer() {\nfunction InteractiveForm() {\nfunction InteractiveForm() {\n </file>\n <file path=\"investigations/mcp-tool-implementation-summary.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/postfix-snippet-bug.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/react.md\" type=\"markdown\" format=\"codemap\">\nexport interface CompileReactOptions {\nexport function compileReactComponent({\nexport enum Channel {\nexport interface ReactFormData {\nexport interface TSXScriptExports {\nfunction TodoForm() {\nfunction SearchForm() {\nfunction MultiStepWizard() {\nfunction Dashboard() {\nfunction TaskManager({ initialTasks, onSave }) {\nfunction taskReducer(tasks, action) {\nfunction FileUploadForm() {\nexport function Form() {\nclass FormErrorBoundary extends React.Component {\n </file>\n <file path=\"investigations/class-name-improvements.md\" type=\"markdown\" format=\"codemap\">\nfunction cn(...classes: (string | boolean | undefined)[]) {\n </file>\n <file path=\"investigations/file-system-watcher-and-hot-reload-investigation.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/worker-thread-communication.md\" type=\"markdown\" format=\"codemap\">\ninterface ScriptUpdate {\nenum Priority {\n </file>\n <file path=\"investigations/script-loading-and-caching-pipeline.md\" type=\"markdown\" format=\"codemap\">\ninterface ScriptMetadata {\ninterface ScriptCacheEntry {\nclass ScriptCache {\nclass ScriptDatabase {\n </file>\n <file path=\"investigations/snippet-prompt-fixes-summary.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/escape-key-investigation.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/file-system-operations-analysis.md\" type=\"markdown\" format=\"codemap\">\nclass LRUScriptCache {\nexport function scoreAndCacheMainChoices(allScripts: Script[]) {\nclass FileStatCache {\n </file>\n <file path=\"investigations/binary-generation-investigation.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/mcp-tool-global.md\" type=\"markdown\" format=\"codemap\">\nexport interface Metadata {\ninterface MCP {\ninterface MCPToolParameter {\nexport interface ToolConfig<T = any> {\nexport interface ParameterConfig {\nfunction parametersToJsonSchema(parameters?: Record<string, ParameterConfig>): JsonSchema {\nfunction generateToolMetadata(config: ToolConfig): Metadata {\nclass CalculateTool extends Tool {\n </file>\n <file path=\"investigations/preview-syncing.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/postfix-snippet-fix-proposal.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"investigations/escape-child-process-fix.md\" type=\"markdown\" format=\"codemap\">\nfunction canChildHandleMessages(child: ChildProcess | null, prompt: KitPrompt): boolean {\n </file>\n <file path=\"prompt-window-final-bundle.md\" type=\"markdown\" format=\"codemap\">\nexport enum AppChannel {\nexport enum WindowChannel {\nexport enum Trigger {\nexport enum HideReason {\nexport enum Widget {\nexport function initShowPromptFlow(prompt: KitPrompt) {\nexport function hideFlow(prompt: KitPrompt) {\nexport function onHideOnceFlow(prompt: KitPrompt, fn: () => void) {\nexport function showPromptFlow(prompt: KitPrompt) {\nexport function moveToMouseScreenFlow(prompt: KitPrompt) {\nexport function initBoundsFlow(prompt: KitPrompt, forceScriptPath?: string) {\nexport function blurPromptFlow(prompt: KitPrompt) {\nexport function initMainBoundsFlow(prompt: KitPrompt) {\ntype Input,\ntype Point,\ntype Rectangle,\nenum Bounds {\nexport type ScriptTrigger = 'startup' | 'shortcut' | 'prompt' | 'background' | 'schedule' | 'snippet';\nexport class KitPrompt {\nexport type PromptWindowMode = 'panel' | 'window';\nexport function ansiRegex({ onlyFirst = false } = {}) {\ntype ChannelAtomMap = {\ntype ToastData = {\ntype HandleCSSVariableHandler = (\ninterface InputState {\ninterface UIState {\ninterface SelectionState {\ninterface TempState {\nclass KitPrompt {\nclass WindowPool {\n </file>\n <file path=\"ENTER_RACE_CONDITION_FIX.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"jotai-files.txt\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"pack-config.txt\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"context/flags-actions.txt\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/fixes/chat-channel-atom.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/search-focus-restoration-report.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/electron.vite.config.ts\" type=\"typescript\" format=\"codemap\">\nconst build: BuildOptions = {\n </file>\n <file path=\"app/.husky/_/pre-rebase\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/pre-applypatch\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/husky.sh\" type=\"bash\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/pre-auto-gc\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/pre-merge-commit\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/post-commit\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/applypatch-msg\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/prepare-commit-msg\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/h\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/post-checkout\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/post-applypatch\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/post-rewrite\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/commit-msg\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/pre-push\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/post-merge\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/_/pre-commit\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.husky/pre-commit\" type=\"text\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/CODE_OF_CONDUCT.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/ESCAPE_KEY_FIX_SUMMARY.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n <file path=\"app/.cursor/PERSONALIZATION.md\" type=\"markdown\" format=\"codemap\">\n// No signatures extracted\n </file>\n </files>\n</prompt>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment