Read ALL files in @agent. We are going to understand this project then work on a generic task.
Then read KEY src files per your understanding.
Then read @agent again, update stale @agent/tasks, stale documentation, and update @/agent/progress.yaml.
Read ALL files in @agent. We are going to understand this project then work on a generic task.
Then read KEY src files per your understanding.
Then read @agent again, update stale @agent/tasks, stale documentation, and update @/agent/progress.yaml.
| import yargs, { Arguments } from 'yargs'; | |
| import fs from 'fs'; | |
| export const cli = yargs(process.argv) | |
| .scriptName('confluence-sync') | |
| .usage('$0 <command> [options]') | |
| .demandCommand(1, 'You need to specify a command') | |
| .completion('completion', (current: string, argv: Arguments<any>, completionFilter, done) => { | |
| const [_, command] = argv._; | |
| /** |
We at XXXXX are building a Model Context Protocol (MCP) client that functions as an agentic AI root cause analysis bot, which will be integrated into our enterprise observability and incident management platform. This enterprise-grade product is following a phased deployment approach:
Phase 1 (Current - Development): Supporting 1-3 XXXXX developers who are actively building and testing the workflow. During this phase, our engineering team needs sufficient quota to iteratively test and refine the system's capabilities to:
| " https://stackoverflow.com/questions/3961859/how-to-copy-to-clipboard-in-vim | |
| " Enable Cmd + C | |
| vnoremap <C-c> :w !pbcopy<CR><CR> noremap <C-v> | |
| " Enable Cmd + P | |
| noremap <C-v> :r !pbpaste<CR><CR> |
| @Log4j2 | |
| public class ImageUtility { | |
| public MultipartFile removeExifAndApplyOrientation(MultipartFile file, String mimeType) throws Exception { | |
| final BufferedImage image = ImageIO.read(file.getInputStream()); | |
| final Path tempDir = Paths.get(System.getProperty("java.io.tmpdir")); | |
| final Path originalFile = Files.createTempFile(tempDir, "original-image-", ""); | |
| final String originalPath = originalFile.toAbsolutePath().toString(); | |
| final ByteArrayOutputStream originalBytes = new ByteArrayOutputStream(); | |
| // jpg is lossy, and in this case when we try to write the file out, |
| import { calcDist, canReachCorner, getRectIntersections, intersectsCircle, intersectsRect, isPointWithinBounds, solutionsForY, solutionsForX, getCircleIntersections } from "./leet"; | |
| describe('leet', () => { | |
| describe('calcDist', () => { | |
| it('calcs dist', () => { | |
| expect(calcDist([0, 0], [0, 1])).toEqual(1); | |
| }); |
| function compareSemver(a: string, b: string) { | |
| const aSemver = a.split('-')[1].split('.'); | |
| const bSember = b.split('-')[1].split('.'); | |
| for (let i = 0; i < 3; i++) { | |
| const aPart = parseInt(aSemver[i], 10); | |
| const bPart = parseInt(bSember[i], 10); | |
| if (aPart > bPart) { |
| #!/usr/bin/env ts-node | |
| import { spawn } from 'node:child_process'; | |
| import * as fs from "node:fs"; | |
| // This script generates test output | |
| // files for each jest test so | |
| // you can view the diffs in an external | |
| // diff viewer | |
| function sortByKey(obj: any): any { |
| // ==UserScript== | |
| // @name Alt Click Copy | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1.0 | |
| // @description Alt click an HTML element on the page to copy it to your clipboard. | |
| // @author mchpatr | |
| // @match *://*/* | |
| // @icon https://github.com/prmichaelsen/alt-click-copy/releases/download/alt-click-copy/save.icon.png | |
| // @run-at document-start | |
| // ==/UserScript== |
| import { Readable, Writable } from "node:stream"; | |
| import { spawn } from "node:child_process"; | |
| export const execCommand = async (cmd: string) => { | |
| const ps = spawn("sh", { env: process.env }); | |
| const data: string[] = []; | |
| const outputStream = new Writable({ | |
| write(chunk, encoding, callback) { |