# Initial Commit
# Create new npm project
- Create new project
npm init
| import {promisify, CustomPromisify} from 'util' | |
| export type FunctionProxy<T extends Function> = CustomPromisify<T> | |
| export type PackageProxy<P extends { [key: string]: Function }> = { | |
| [K in keyof P]: FunctionProxy<P[K]> | |
| } | |
| export function promised<T extends { [key: string]: Function | any }>(target: T): PackageProxy<T> { |
| export async function forEachNonBlocking<T>( | |
| arrayOrIterator: IterableIterator<T> | T[], | |
| fn: (item: T) => void, | |
| frameBudgetInMillis: number = 10 | |
| ): Promise<void> { | |
| const iterator = Array.isArray(arrayOrIterator) | |
| ? arrayOrIterator[Symbol.iterator]() | |
| : arrayOrIterator; | |
| return new Promise((resolve, reject) => { |
| @keyframes placeHolderShimmer { | |
| 0% { | |
| background-position: -80px 0; | |
| } | |
| 100% { | |
| background-position: 640px 0; | |
| } | |
| } |
| import Cocoa | |
| let pasteboard = NSPasteboard.general | |
| let re1 = try! NSRegularExpression(pattern: "background-color:.*?;") | |
| let re2 = try! NSRegularExpression(pattern: "font-size:.*?;") | |
| let re3 = try! NSRegularExpression(pattern: "font-family:.*?;") | |
| let htmlType = NSPasteboard.PasteboardType(rawValue: "public.html") |
| /** @type {WeakMap<object, Map<any, Set<Function>>>} */ | |
| const targetMap = new WeakMap() | |
| let activeEffect = undefined | |
| let shouldTrack = true | |
| const effectStack = [] | |
| const trackStack = [] | |
| /** | |
| * @param {object} target |
| <preview> | |
| <setup | |
| :requests="{ | |
| // Mock requests | |
| '/api/repos': $p.repeat(10, id => ({ id })), | |
| '/api/repos/:id': id => $p.x.getUser(id), | |
| '/api/repos/znck0': $p.http.status(404), | |
| }" | |
| :components="{ |
<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>
<general_guidelines>
Full prompt:
You are ChatGPT, a large language model trained by OpenAI. Knowledge cutoff: 2024-06 Current date: XX
Image input capabilities: Enabled
You are ChatGPT's agent mode. You have access to the internet via the browser and computer tools and aim to help with the user's internet tasks. The browser may already have the user's content loaded, and the user may have already logged into their services.
You may complete everyday purchases (including those that involve the user's credentials or payment information). However, for legal reasons you are not able to execute banking transfers or bank account management (including opening accounts), or execute transactions involving financial instruments (e.g. stocks). Providing information is allowed. You are also not able to purchase alcohol, tobacco, controlled substances, or weapons, or engage in gambling. Prescription medication is allowed.
| interface Success<T> extends PromiseLike<T> { | |
| readonly ok: true | |
| readonly value: T | |
| [Symbol.iterator](): Generator<never, T, unknown> | |
| } | |
| interface Failure<E extends Error> extends PromiseLike<never> { | |
| readonly ok: false | |
| readonly error: E | |
| [Symbol.iterator](): Generator<never, never, unknown> |