Files

1 line
4.5 KiB
JSON

{"repo": "cfomodz/deep-task", "files": {"CLAUDE.md": {"302ae62a9041479f997173906d0452b3f23e4964": {"t": 1785746379.8240185, "n": 2127, "h": "0e27fe86674f58c5", "c": "# CLAUDE.md\n\nThis file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.\n\n## Project Overview\n\nDeep-Task Prompt Architect is a browser-based tool for refining and decomposing complex task prompts using the DeepSeek API. Users interact with a visual node-based canvas where prompts can be iteratively refined through AI-assisted questioning, then split into subtasks.\n\n## Development\n\nThis is a vanilla JavaScript web application with no build system or dependencies. To run locally, serve the files with any static HTTP server:\n\n```bash\npython -m http.server 8000\n# or\nnpx serve .\n```\n\nThen open `http://localhost:8000` in a browser.\n\n## Architecture\n\n### Core Files\n- `index.html` - Single page with modal for API key entry, topbar with export button, and canvas viewport\n- `script.js` - All application logic in a single file\n- `styles.css` - CSS with custom properties for theming\n\n### State Management\nAll state lives in the global `state` object in `script.js`:\n- `nodes` - Map of node objects (id, parentId, title, prompt, status, locked, children, history, x, y coordinates)\n- `rootId` - ID of the root node\n- `panX/panY/scale` - Canvas viewport transform\n- `apiKey` - Stored in localStorage as `deepseek_api_key`\n\n### Node Lifecycle\n1. **Draft** - Initial state, user enters prompt text\n2. **Questioning** - AI asks clarifying questions via `REFINE_SYSTEM_PROMPT`\n3. **Complete** - Prompt is finalized, can be split or locked\n4. **Locked** - Frozen, cannot be edited or split\n\n### Key Functions\n- `refinePrompt(node)` - Sends conversation to DeepSeek for iterative refinement\n- `requestSplit(node)` - Uses `SPLIT_SYSTEM_PROMPT` to break task into child nodes\n- `createNode(options)` - Creates node, adds to DOM, sets up event listeners\n- `updateConnections()` - Redraws SVG bezier curves between parent/child nodes\n- `exportTodo()` - Generates markdown TODO list from node tree\n\n### API Integration\nDeepSeek API calls go to `https://api.deepseek.com/v1/chat/completions` with the `deepseek-chat` model. Responses must be JSON with specific keys defined in the system prompts.\n"}, "d68a030f76f91b772dd6bdbc51443f2c346e9036": {"t": 1785763130.1395757, "n": 2127, "h": "0e27fe86674f58c5", "c": "# CLAUDE.md\n\nThis file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.\n\n## Project Overview\n\nDeep-Task Prompt Architect is a browser-based tool for refining and decomposing complex task prompts using the DeepSeek API. Users interact with a visual node-based canvas where prompts can be iteratively refined through AI-assisted questioning, then split into subtasks.\n\n## Development\n\nThis is a vanilla JavaScript web application with no build system or dependencies. To run locally, serve the files with any static HTTP server:\n\n```bash\npython -m http.server 8000\n# or\nnpx serve .\n```\n\nThen open `http://localhost:8000` in a browser.\n\n## Architecture\n\n### Core Files\n- `index.html` - Single page with modal for API key entry, topbar with export button, and canvas viewport\n- `script.js` - All application logic in a single file\n- `styles.css` - CSS with custom properties for theming\n\n### State Management\nAll state lives in the global `state` object in `script.js`:\n- `nodes` - Map of node objects (id, parentId, title, prompt, status, locked, children, history, x, y coordinates)\n- `rootId` - ID of the root node\n- `panX/panY/scale` - Canvas viewport transform\n- `apiKey` - Stored in localStorage as `deepseek_api_key`\n\n### Node Lifecycle\n1. **Draft** - Initial state, user enters prompt text\n2. **Questioning** - AI asks clarifying questions via `REFINE_SYSTEM_PROMPT`\n3. **Complete** - Prompt is finalized, can be split or locked\n4. **Locked** - Frozen, cannot be edited or split\n\n### Key Functions\n- `refinePrompt(node)` - Sends conversation to DeepSeek for iterative refinement\n- `requestSplit(node)` - Uses `SPLIT_SYSTEM_PROMPT` to break task into child nodes\n- `createNode(options)` - Creates node, adds to DOM, sets up event listeners\n- `updateConnections()` - Redraws SVG bezier curves between parent/child nodes\n- `exportTodo()` - Generates markdown TODO list from node tree\n\n### API Integration\nDeepSeek API calls go to `https://api.deepseek.com/v1/chat/completions` with the `deepseek-chat` model. Responses must be JSON with specific keys defined in the system prompts.\n"}}}}