@kombai/cli 0.2.0-beta.6 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kombai.mjs +10 -10
- package/dist/launch.mjs +1 -1
- package/dist/mcp-apps/design-taste.js +1 -1
- package/package.json +1 -1
package/dist/kombai.mjs
CHANGED
|
@@ -62,9 +62,9 @@ var init_env = __esm({
|
|
|
62
62
|
preprod: { api: "https://api.assistant.preprod.kombai.com", web: "https://agent.preprod.kombai.com" },
|
|
63
63
|
prod: { api: "https://api.assistant.app.kombai.com", web: "https://agent.kombai.com" }
|
|
64
64
|
});
|
|
65
|
-
DEFAULT_ENV = Object.hasOwn(ENVIRONMENTS, "
|
|
65
|
+
DEFAULT_ENV = Object.hasOwn(ENVIRONMENTS, "prod") ? (
|
|
66
66
|
/** @type {EnvName} */
|
|
67
|
-
"
|
|
67
|
+
"prod"
|
|
68
68
|
) : "prod";
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -1040,13 +1040,13 @@ var init_version = __esm({
|
|
|
1040
1040
|
init_define_KOMBAI_TELEMETRY();
|
|
1041
1041
|
init_codexKombaiEntry();
|
|
1042
1042
|
init_place();
|
|
1043
|
-
CLI_VERSION = true ? "0.2.
|
|
1043
|
+
CLI_VERSION = true ? "0.2.1" : (
|
|
1044
1044
|
/** @type {{ version: string }} */
|
|
1045
1045
|
JSON.parse(readFileSync(new URL("../../package.json", import.meta.url), "utf8")).version
|
|
1046
1046
|
);
|
|
1047
|
-
CLI_NPX_RUN = true ? "npx -y @kombai/cli@0.2.
|
|
1047
|
+
CLI_NPX_RUN = true ? "npx -y @kombai/cli@0.2.1" : `npx -y ${KOMBAI_CLI_PACKAGE}`;
|
|
1048
1048
|
CLI_RUN = runLineOf(fileURLToPath(import.meta.url), CLI_VERSION, CLI_NPX_RUN);
|
|
1049
|
-
CLI_PACKAGE = true ? "@kombai/cli@0.2.
|
|
1049
|
+
CLI_PACKAGE = true ? "@kombai/cli@0.2.1" : KOMBAI_CLI_PACKAGE;
|
|
1050
1050
|
CLI_OUTDATED_NEXT = "A newer Kombai CLI is out; update the Kombai plugin.";
|
|
1051
1051
|
}
|
|
1052
1052
|
});
|
|
@@ -36479,7 +36479,7 @@ var init_server3 = __esm({
|
|
|
36479
36479
|
var actions_default;
|
|
36480
36480
|
var init_actions = __esm({
|
|
36481
36481
|
"src/skill/actions.md"() {
|
|
36482
|
-
actions_default = '# Requests from the canvas\n\nThe user can ask for work from the hosted canvas: the page copies a message for them to paste into this\nchat, or, in the Kombai view beside the chat, puts it in the message box (an Add to context becomes a\ncontext item instead). Each request is one sentence, then a link on its own line (Add to context\'s is\none line with no sentence, below):\n\n On my Kombai canvas "Checkout redesign", make 3 variants of "Variant A" with improved styles.\n https://agent.kombai.com/c/cnv_8f2a1b9c3d7e?node=nd_31a\n\nThe link names the canvas (after /c/) and the design (?node=). One message can hold several requests,\nsplit by blank lines; do each. The user may add their own words; they win where they differ.\n\nFor a whole-canvas request, use `kombai canvas pull --canvas <link>` and follow the user\'s request.\nFor a node request, use `kombai node pull --canvas <link> --node <node>`; if you will change that design,\nrun `kombai node lock --canvas <link> --node <node>` before the pull. Read the HTML file it prints,\nand look at its thumbnail with `kombai screenshot wait --canvas <link> --node <node> --tiles`. An element\nnamed with data-kid="<id>" is the element with that attribute in the HTML.\n\nBefore writing or changing design HTML, read `kombai skill html`. When the request needs taste, read\n`kombai skill brief` first. A request from the canvas (copied from its page, or put in the message box by the\nKombai view) comes from a canvas the user has open: don\'t show the canvas again. A canvas the user only named:\nshow it once, as `kombai skill opening` says.\n\nThen do what the sentence asks:\n\n- **make 3 variants of "<label>"**, maybe with a direction (improved styles, structure, interactions or\n responsiveness, or "that improve the design") and a style in parentheses. Make 3 new designs with\n `kombai node start --canvas <id> --label "<label>" --parent <node>`, each a clear take on that\n direction and different from the others, keeping the content. Run taste first only when the request\n wants new ideas rather than a change of the same design.\n- **make a [dark mode] [mobile | tablet | laptop | custom-width] version of "<label>"**, maybe with a\n width and the user\'s instructions after a colon. One new design with --parent <node> and the content\n kept. Add `--viewport mobile` (390 px), `--viewport tablet` (768 px) or `--viewport desktop` (laptop,\n 1280 px) to node start. For a custom width, give the node its width before its first push, so the\n thumbnail is rendered once, at that width; a later width change drops it until the next\n `kombai screenshot fill`. After node start, set the node\'s rect w in canvas.json to that width and\n run `kombai canvas push --canvas <id>`, then write the HTML and push it. Dark mode: the same design\n in a dark palette. No taste: reflow, don\'t redesign.\n- **regenerate "<label>"**: write a fresh, better version of the same concept into the pulled file and\n push it to the same node. **with the "<name>" design system**: find its slug in `kombai ds list`, pull\n it (`kombai skill design-system`) and use its tokens.\n- **in "<label>", change the <element>: <what to do>**: edit only that element in the pulled file and\n push. Leave the rest of the design as it is.\n- **build "<label>" in this project**, or **build the <element> of "<label>"**: write it as code in this\n repo, in the repo\'s framework, components and styles, using the pulled HTML and the thumbnail as the\n reference. This changes the repo, not the canvas.\n- **"<label>" <link>**, **The <element> in "<label>" <link>** or **The canvas "<name>" <link>**: one line\n with no sentence (Add to context; in the Kombai view beside the chat it arrives as a context item titled\n with the name). Context for the user\'s own words in the same message. Use the pulled node or canvas and\n do what they ask; if they asked nothing, describe it and ask what they want.\n- **refer design system: <name>**: one line with no link (Add to context in the Design systems panel).\n Context for the user\'s own words in the same message: `kombai skill design-system` says how to find\n and pull it by name.\n\nA lock lasts 10 minutes: run node lock again for a longer edit
|
|
36482
|
+
actions_default = '# Requests from the canvas\n\nThe user can ask for work from the hosted canvas: the page copies a message for them to paste into this\nchat, or, in the Kombai view beside the chat, puts it in the message box (an Add to context becomes a\ncontext item instead). Each request is one sentence, then a link on its own line (Add to context\'s is\none line with no sentence, below):\n\n On my Kombai canvas "Checkout redesign", make 3 variants of "Variant A" with improved styles.\n https://agent.kombai.com/c/cnv_8f2a1b9c3d7e?node=nd_31a\n\nThe link names the canvas (after /c/) and the design (?node=). One message can hold several requests,\nsplit by blank lines; do each. The user may add their own words; they win where they differ.\n\nFor a whole-canvas request, use `kombai canvas pull --canvas <link>` and follow the user\'s request.\nFor a node request, use `kombai node pull --canvas <link> --node <node>`; if you will change that design,\nrun `kombai node lock --canvas <link> --node <node>` before the pull. Read the HTML file it prints,\nand look at its thumbnail with `kombai screenshot wait --canvas <link> --node <node> --tiles`. An element\nnamed with data-kid="<id>" is the element with that attribute in the HTML.\n\nBefore writing or changing design HTML, read `kombai skill html`. When the request needs taste, read\n`kombai skill brief` first. A request from the canvas (copied from its page, or put in the message box by the\nKombai view) comes from a canvas the user has open: don\'t show the canvas again. A canvas the user only named:\nshow it once, as `kombai skill opening` says.\n\nThen do what the sentence asks:\n\n- **make 3 variants of "<label>"**, maybe with a direction (improved styles, structure, interactions or\n responsiveness, or "that improve the design") and a style in parentheses. Make 3 new designs with\n `kombai node start --canvas <id> --label "<label>" --parent <node>`, each a clear take on that\n direction and different from the others, keeping the content. Run taste first only when the request\n wants new ideas rather than a change of the same design.\n- **make a [dark mode] [mobile | tablet | laptop | custom-width] version of "<label>"**, maybe with a\n width and the user\'s instructions after a colon. One new design with --parent <node> and the content\n kept. Add `--viewport mobile` (390 px), `--viewport tablet` (768 px) or `--viewport desktop` (laptop,\n 1280 px) to node start. For a custom width, give the node its width before its first push, so the\n thumbnail is rendered once, at that width; a later width change drops it until the next\n `kombai screenshot fill`. After node start, set the node\'s rect w in canvas.json to that width and\n run `kombai canvas push --canvas <id>`, then write the HTML and push it. Dark mode: the same design\n in a dark palette. No taste: reflow, don\'t redesign.\n- **regenerate "<label>"**: write a fresh, better version of the same concept into the pulled file and\n push it to the same node. **with the "<name>" design system**: find its slug in `kombai ds list`, pull\n it (`kombai skill design-system`) and use its tokens.\n- **in "<label>", change the <element>: <what to do>**: edit only that element in the pulled file and\n push. Leave the rest of the design as it is.\n- **build "<label>" in this project**, or **build the <element> of "<label>"**: write it as code in this\n repo, in the repo\'s framework, components and styles, using the pulled HTML and the thumbnail as the\n reference. This changes the repo, not the canvas.\n- **"<label>" <link>**, **The <element> in "<label>" <link>** or **The canvas "<name>" <link>**: one line\n with no sentence (Add to context; in the Kombai view beside the chat it arrives as a context item titled\n with the name). Context for the user\'s own words in the same message. Use the pulled node or canvas and\n do what they ask; if they asked nothing, describe it and ask what they want.\n- **refer design system: <name>**: one line with no link (Add to context in the Design systems panel).\n Context for the user\'s own words in the same message: `kombai skill design-system` says how to find\n and pull it by name.\n\nA lock lasts 10 minutes: run node lock again for a longer edit (the push ends it). The fixes after a push\n("Check a finished design" in the overview) take no lock. If you stop without pushing, or drop your edit\nwith node pull --discard, run `kombai node unlock --canvas <link> --node <node>`. If node lock fails, go on\nwithout it; a drawing takes no lock.\n\nAfter a design\'s last HTML push, follow "Check a finished design" in the overview. When you are done,\ntell the user what changed; the canvas they have open shows it live.\n';
|
|
36483
36483
|
}
|
|
36484
36484
|
});
|
|
36485
36485
|
|
|
@@ -36487,7 +36487,7 @@ var init_actions = __esm({
|
|
|
36487
36487
|
var assets_default;
|
|
36488
36488
|
var init_assets = __esm({
|
|
36489
36489
|
"src/skill/assets.md"() {
|
|
36490
|
-
assets_default = '# AI images and video\n\n`kombai asset generate` makes an image or a video with an AI model, for the user\'s credits. Make one\nonly when the user asks Kombai for it (names Kombai or picks this
|
|
36490
|
+
assets_default = '# AI images and video\n\n`kombai asset generate` makes an image or a video with an AI model, for the user\'s credits. Make one\nonly when the user asks for an AI image or video itself and asks Kombai for it (names Kombai or picks this\nskill), or, when the user asked for AI video, for each prompt in a taste run\'s <deferred-video-generation>\nblock. A request to design a page, a section or a canvas is not that ask, even when it names Kombai or\nmentions illustrations. Never make one on your own, not even a hero or where a design would look better\nwith art: use the taste run\'s images, stock links, repo images or SVG (`kombai skill html`).\n\n{{RUN}}\n\nA guest can\'t generate (CLI_SIGNIN_REQUIRED): follow `kombai skill sign-in`, with the assets sign-in card where\n`sign_in_card` is among your tools.\n\n## Choose the model\n\n`kombai asset models --type <type>` lists the models, each with the options it takes.\n\n- An image: leave out --model unless the user named one, and Kombai picks its own. That one takes\n --aspect only.\n- A video: --model is required. Its --duration must be one the model lists.\n- Pick --aspect from the box the design shows it in (16:9 for a wide hero, 1:1 for a square tile,\n 9:16 for a phone-height panel), from the ratios the model lists.\n- Any other option goes in as `--param <key=value>`, from the model\'s params. What you leave out runs at the\n default `asset models` lists for it; check a video model\'s `audio` default there before saying it is silent.\n\n## Ask before a video\n\nA video can cost hundreds of credits, and nothing here lists prices, so never guess one. Get its cost\nfirst: run the same generate with `--max-credits 1`, then `kombai asset wait` its run. That run ends in\nASSET_OVER_LIMIT, whose message names the estimate in credits, uses no credits and makes no video. Then tell\nthe user the model, the length and that estimate, and wait for a yes; for several, ask once, naming each. Run the generate again with the number\nthey agreed to as --max-credits: a run that would cost more fails with ASSET_OVER_LIMIT. Their balance is\nin `kombai credits`. An image needs no yes.\n\n## Run it\n\n kombai asset generate --type image --prompt "<text>" --aspect <ratio>\n kombai asset generate --type video --model "<name>" --prompt "<text>" --aspect <ratio> --duration <duration> --max-credits <n>\n\n- A video from an image: add `--from-image <file-or-url>`, a png, jpeg or webp file of at most 10 MB or an https link,\n such as the url of an image made here.\n- A long prompt: `--prompt-file <file>` in place of --prompt (at most 4,000 characters).\n\ngenerate prints the run at once and never waits for it. Then run `kombai asset wait <run>` in the\nforeground, one wait at a time: it returns within about two minutes, so while its status is running, tell\nthe user the asset is still being made, as expected, and wait again. A video takes minutes. For several\nassets, run each generate in turn, then wait for each.\n\n## Use it\n\nWhen it is done, wait prints `url` (an https link), `posterUrl` (a video\'s still), `path` (a copy saved on\nthis machine) and `creditsUsed`. Put `url` in the design as it is:\n\n- An image: `<img src="\u2026" alt="\u2026">` or CSS `url()`.\n- A video: `<video src="\u2026" poster="\u2026" autoplay muted loop playsinline preload="metadata">`, the poster\n from `posterUrl`. Without one, use a still image the design already has.\n\nThe link needs no `kombai asset push`. Never invent or edit an asset link. In your reply, give the user\neach asset\'s `url` (and a video\'s `posterUrl`) as its link, and what it used (`creditsUsed`); `path` is\nonly a local copy, so mention it, if at all, after the link, never in its place. When wait also warns\nCLI_ASSET_NOT_SAVED, the link still works: use it.\n\n## When it fails\n\n- A refused flag names the values the model takes: fix it and run generate again.\n- ASSET_NO_CREDITS: call plans_card if among your tools, else show next\'s plan link; stop.\n- ASSET_OVER_LIMIT: the run would cost more than --max-credits. Ask the user before a higher one.\n- ASSET_NOT_STARTED, or a lost answer: run the same generate again; it picks up the same run.\n- Any other failure: tell the user its message. Try an image once more; ask before trying a video again.\n';
|
|
36491
36491
|
}
|
|
36492
36492
|
});
|
|
36493
36493
|
|
|
@@ -36543,7 +36543,7 @@ var init_faq = __esm({
|
|
|
36543
36543
|
var html_default;
|
|
36544
36544
|
var init_html = __esm({
|
|
36545
36545
|
"src/skill/html.md"() {
|
|
36546
|
-
html_default = '# Writing a design\'s HTML\n\nThe file `kombai node start` prints holds one design. The canvas shows it live in a frame, and\n`kombai screenshot fill` renders the thumbnail most viewers see. Write it so both look the same.\n\n## Build in passes\n\nnode start creates the file, empty. Read it right after node start, before your first write, even though\nit is empty: an editor that writes only files it has read refuses the write otherwise, and the page you\nwrote is lost. Push the first pass within 30 minutes of node start, or the placeholder expires.\n\n1. First pass: every section in order, with its layout, headings and real copy.\n2. Each later pass: one or two sections\' art, motion and interactions.\n\nPush after each pass, and only once its write has succeeded: never in the same batch of tool calls as\nthe write. The canvas shows each push live, so the user watches the page fill in. Check the design once,\nafter its last pass ("Check a finished design" in the overview).\n\n## The file\n\n- Body content only: no `<!DOCTYPE>`, `<html>`, `<head>` or `<body>`. The canvas and the thumbnail\n both wrap it in their own page, inside a `<div id="root">`, so `body > \u2026` selectors match nothing.\n- So the file is a fragment, not a web page: opened on its own it looks broken. Never open, preview or\n serve it, and never link or name its path to the user. To point the user at a design, give the `url`\n node start, node pull and node push print for it: the canvas, with that design in focus. Where\n `canvas_app` shows the canvas beside the chat, and anywhere in the Codex app (whose commands print no link),\n name the design instead, with no link unless the user asks for one. A guest\'s `url` is null: point them at the\n canvas you showed them.\n- Style with Tailwind v4 classes or with your own CSS in a `<style>`. Put every `<style>`, `<link>` and\n library `<script>` at the top of the body. Load Google Fonts with `@import url(\u2026)` as the first line of a\n `<style>`. Set the font, text color and background on your outermost element.\n- Tailwind: add no Tailwind script; Kombai loads Tailwind v4 when the design uses its classes. The canvas\n builds CSS only from classes written in `class="\u2026"`: no config, `@apply`, `@theme` or\n `<style type="text/tailwindcss">`, and a class only a script adds gets no CSS there; write that styling as\n plain CSS in a `<style>`. Use v4 utilities (`bg-black/50`, not `bg-opacity-50`), and CSS variables as\n `bg-(--brand)` or `bg-[var(--brand)]`, never `bg-[--brand]`. On a page with Tailwind classes, style\n no `*` or bare tags in a `<style>`: CSS there beats every Tailwind class.\n- Your own CSS, with no Tailwind classes: the page owns its defaults. Start its `<style>` with a reset\n (margin, padding and box-sizing on `*`) and style headings, lists, links, buttons and images yourself,\n so the page looks the same whether or not Tailwind is loaded. Don\'t name classes like Tailwind\n utilities (`flex`, `hidden`, `text-center`, `p-4`): the canvas may take the page for Tailwind.\n- Define every `@keyframes` you use.\n- `kombai node push` writes a `data-kid="\u2026"` id onto each element of a changed file before it sends it: the id\n the canvas and the user\'s requests name an element by. Read the file again before your next pass to get them.\n Keep the ids when you edit; give a new element none, the next push numbers it.\n\n## Size and position\n\n- A design is 1280 px wide. `--viewport mobile`, `--viewport tablet` or `--viewport desktop` on\n `kombai node start` makes it 390, 768 or 1280. Design for that width: one design per device, not one\n with breakpoints.\n- A design is content height unless you give it a height: its frame is as tall as its page and never\n scrolls. So:\n - Give heights in px (`h-[720px]`, `min-height: 640px`). `h-screen`, `min-h-screen` and `100vh` come out\n 1000 px tall, on the canvas and in the thumbnail.\n - Do not size anything from `window.innerHeight`: on the canvas it is the whole page\'s height.\n- What needs the page to scroll needs a design with a height of its own: scroll-driven effects (scroll\n listeners, parallax, pinned or scrubbed sections, GSAP ScrollTrigger), `sticky` and `fixed` elements, and\n smooth scrolling (Lenis, Locomotive). At content height nothing scrolls, so none of them run: a pinned\n section\'s runway shows as empty space, a sticky element never sticks, and a fixed bottom bar lands 1000 px\n down, mid-page; selected, the canvas shows a page that pins in a device-height window it cannot scroll.\n So after the first push, set the design\'s `rect.h` in canvas.json to its device height (desktop 800,\n tablet 1024, mobile 812) and run `kombai canvas push --canvas <id>`. Selected, it then scrolls inside that\n window and all of these run as on a real page. A reveal that only waits to come into view\n (IntersectionObserver) needs no height: it runs as the viewer pans to it.\n- The thumbnail scrolls the page through once and settles its animations, so it shows the page as a\n visitor who scrolled to the bottom left it: every reveal shown, pinned sections and parallax layers at\n their end, no runway. It takes scrubbed animations at their end too, so an element that fades or slides\n out as the page scrolls is missing from it: animate things in, not out. A design with a height gets the\n whole page as its thumbnail, seen through its window: a sticky element shows where it starts, and a fixed\n one where it sits on the first screen, so a bar fixed to the bottom shows at that screen\'s foot, mid-page.\n- The thumbnail stops at 16,000 px.\n\n## Scripts\n\n- Load each library from a CDN with its own `<script src>` and a pinned version: Chart.js for charts,\n GSAP or Motion for animation. Only public https hosts load.\n- The thumbnail renders with reduced motion. It scrolls the page through, runs GSAP, ScrollTrigger, anime\n and Web Animations to their end, pauses CSS animations and video, and is taken once fonts and images\n are in. The page must look finished by then:\n - Chart.js: `options: { animation: false }`.\n - CSS entrance animations: behind `motion-safe:` or `@media (prefers-reduced-motion: no-preference)`.\n - A page that fills in late (JS entrance animations, content a script draws) sets\n `window.KOMBAI_READY = false` at the top, and `true` when done (or dispatches a `kombai:ready`\n event on window). The thumbnail waits up to 20 s, then takes the page as it is. A page whose text\n names either is waited for, so name them only if you signal.\n\n## Images and video\n\n- Repo files: `/api/local/images/<path from the repo root>`, in src, srcset, poster or CSS `url()`.\n `kombai node push` uploads each one: png, jpg, jpeg, webp, gif, svg, mp4 or webm, up to 20 MB, at\n most 100 per design. Write each path in full, with spaces as `%20`; a path a script builds is not\n uploaded.\n- A file outside the repo, such as an image you generated: `kombai asset push <file> --canvas <id>`\n prints its url. Use that url.\n- AI-generated images or video, only when the user asks Kombai for
|
|
36546
|
+
html_default = '# Writing a design\'s HTML\n\nThe file `kombai node start` prints holds one design. The canvas shows it live in a frame, and\n`kombai screenshot fill` renders the thumbnail most viewers see. Write it so both look the same.\n\n## Build in passes\n\nnode start creates the file, empty. Read it right after node start, before your first write, even though\nit is empty: an editor that writes only files it has read refuses the write otherwise, and the page you\nwrote is lost. Push the first pass within 30 minutes of node start, or the placeholder expires.\n\n1. First pass: every section in order, with its layout, headings and real copy.\n2. Each later pass: one or two sections\' art, motion and interactions.\n\nPush after each pass, and only once its write has succeeded: never in the same batch of tool calls as\nthe write. The canvas shows each push live, so the user watches the page fill in. Check the design once,\nafter its last pass ("Check a finished design" in the overview).\n\n## The file\n\n- Body content only: no `<!DOCTYPE>`, `<html>`, `<head>` or `<body>`. The canvas and the thumbnail\n both wrap it in their own page, inside a `<div id="root">`, so `body > \u2026` selectors match nothing.\n- So the file is a fragment, not a web page: opened on its own it looks broken. Never open, preview or\n serve it, and never link or name its path to the user. To point the user at a design, give the `url`\n node start, node pull and node push print for it: the canvas, with that design in focus. Where\n `canvas_app` shows the canvas beside the chat, and anywhere in the Codex app (whose commands print no link),\n name the design instead, with no link unless the user asks for one. A guest\'s `url` is null: point them at the\n canvas you showed them.\n- Style with Tailwind v4 classes or with your own CSS in a `<style>`. Put every `<style>`, `<link>` and\n library `<script>` at the top of the body. Load Google Fonts with `@import url(\u2026)` as the first line of a\n `<style>`. Set the font, text color and background on your outermost element.\n- Tailwind: add no Tailwind script; Kombai loads Tailwind v4 when the design uses its classes. The canvas\n builds CSS only from classes written in `class="\u2026"`: no config, `@apply`, `@theme` or\n `<style type="text/tailwindcss">`, and a class only a script adds gets no CSS there; write that styling as\n plain CSS in a `<style>`. Use v4 utilities (`bg-black/50`, not `bg-opacity-50`), and CSS variables as\n `bg-(--brand)` or `bg-[var(--brand)]`, never `bg-[--brand]`. On a page with Tailwind classes, style\n no `*` or bare tags in a `<style>`: CSS there beats every Tailwind class.\n- Your own CSS, with no Tailwind classes: the page owns its defaults. Start its `<style>` with a reset\n (margin, padding and box-sizing on `*`) and style headings, lists, links, buttons and images yourself,\n so the page looks the same whether or not Tailwind is loaded. Don\'t name classes like Tailwind\n utilities (`flex`, `hidden`, `text-center`, `p-4`): the canvas may take the page for Tailwind.\n- Define every `@keyframes` you use.\n- `kombai node push` writes a `data-kid="\u2026"` id onto each element of a changed file before it sends it: the id\n the canvas and the user\'s requests name an element by. Read the file again before your next pass to get them.\n Keep the ids when you edit; give a new element none, the next push numbers it.\n\n## Size and position\n\n- A design is 1280 px wide. `--viewport mobile`, `--viewport tablet` or `--viewport desktop` on\n `kombai node start` makes it 390, 768 or 1280. Design for that width: one design per device, not one\n with breakpoints.\n- A design is content height unless you give it a height: its frame is as tall as its page and never\n scrolls. So:\n - Give heights in px (`h-[720px]`, `min-height: 640px`). `h-screen`, `min-h-screen` and `100vh` come out\n 1000 px tall, on the canvas and in the thumbnail.\n - Do not size anything from `window.innerHeight`: on the canvas it is the whole page\'s height.\n- What needs the page to scroll needs a design with a height of its own: scroll-driven effects (scroll\n listeners, parallax, pinned or scrubbed sections, GSAP ScrollTrigger), `sticky` and `fixed` elements, and\n smooth scrolling (Lenis, Locomotive). At content height nothing scrolls, so none of them run: a pinned\n section\'s runway shows as empty space, a sticky element never sticks, and a fixed bottom bar lands 1000 px\n down, mid-page; selected, the canvas shows a page that pins in a device-height window it cannot scroll.\n So after the first push, set the design\'s `rect.h` in canvas.json to its device height (desktop 800,\n tablet 1024, mobile 812) and run `kombai canvas push --canvas <id>`. Selected, it then scrolls inside that\n window and all of these run as on a real page. A reveal that only waits to come into view\n (IntersectionObserver) needs no height: it runs as the viewer pans to it.\n- The thumbnail scrolls the page through once and settles its animations, so it shows the page as a\n visitor who scrolled to the bottom left it: every reveal shown, pinned sections and parallax layers at\n their end, no runway. It takes scrubbed animations at their end too, so an element that fades or slides\n out as the page scrolls is missing from it: animate things in, not out. A design with a height gets the\n whole page as its thumbnail, seen through its window: a sticky element shows where it starts, and a fixed\n one where it sits on the first screen, so a bar fixed to the bottom shows at that screen\'s foot, mid-page.\n- The thumbnail stops at 16,000 px.\n\n## Scripts\n\n- Load each library from a CDN with its own `<script src>` and a pinned version: Chart.js for charts,\n GSAP or Motion for animation. Only public https hosts load.\n- The thumbnail renders with reduced motion. It scrolls the page through, runs GSAP, ScrollTrigger, anime\n and Web Animations to their end, pauses CSS animations and video, and is taken once fonts and images\n are in. The page must look finished by then:\n - Chart.js: `options: { animation: false }`.\n - CSS entrance animations: behind `motion-safe:` or `@media (prefers-reduced-motion: no-preference)`.\n - A page that fills in late (JS entrance animations, content a script draws) sets\n `window.KOMBAI_READY = false` at the top, and `true` when done (or dispatches a `kombai:ready`\n event on window). The thumbnail waits up to 20 s, then takes the page as it is. A page whose text\n names either is waited for, so name them only if you signal.\n\n## Images and video\n\n- Repo files: `/api/local/images/<path from the repo root>`, in src, srcset, poster or CSS `url()`.\n `kombai node push` uploads each one: png, jpg, jpeg, webp, gif, svg, mp4 or webm, up to 20 MB, at\n most 100 per design. Write each path in full, with spaces as `%20`; a path a script builds is not\n uploaded.\n- A file outside the repo, such as an image you generated: `kombai asset push <file> --canvas <id>`\n prints its url. Use that url.\n- AI-generated images or video, only when the user asks for one itself and asks Kombai for it (names\n Kombai or picks its assets skill; asking Kombai for a design is not asking for one), or for a taste run\'s\n deferred videos once the user asked for AI video: read `kombai skill assets`.\n Use the url it prints as is.\n- Stock photos: use the links directions.md gives, with size params added. images.unsplash.com:\n `?auto=format&w=<px>&q=80&fit=crop`. images.pexels.com: `?auto=compress&cs=tinysrgb&w=<px>&q=80`.\n The bare link is the full-size original.\n- Icons: inline SVG from the library directions.md names.\n- `<img decoding="async" alt="\u2026">`. `loading="lazy"` is fine: the thumbnail loads every image first.\n- Video: `<video src="\u2026" poster="\u2026" autoplay muted loop playsinline preload="metadata">`. Always set a\n poster: it shows until the video plays. Drop autoplay and loop only for click-to-play, such as a\n walkthrough.\n- Every other URL is absolute and public https: relative paths do not resolve, and the thumbnail\n refuses localhost and private addresses.\n- Never invent an image URL.\n\n## Content\n\n- Real copy from the brief and the repo: real names, numbers and dates. No lorem ipsum. No text for the\n reviewer: no design notes, captions explaining the layout, or "click to see".\n- Plain section headings, as a product\'s UI would have them: "Plans", "Details", "Team", not "What it\n costs", "How it works" or "Who is on site this week".\n- One page or screen per design; a modal or drawer is its own design. For a component, design only\n it, on a plain background.\n- Give each meaningful element a `data-name` saying what it is ("pricing card", "hero headline"): the\n canvas editor shows it.\n- No `dark:` classes or `prefers-color-scheme` queries: they follow the viewer\'s theme, so the canvas and\n the thumbnail can differ. A dark version is its own design.\n\n## Patterns to avoid, unless asked\n\n- Drop shadows on cards; gradient-filled headline text.\n- The stock hero: headline, image, two buttons, badges.\n- Three icon-topped cards in a row; plain pricing, testimonial or two-row stat cards.\n- A footer of only links and a logo; a form or call-out as one big card.\n- Fade-in on appear and lift on hover as the only motion; buttons with the usual radius and hover.\n';
|
|
36547
36547
|
}
|
|
36548
36548
|
});
|
|
36549
36549
|
|
|
@@ -36567,7 +36567,7 @@ var init_opening = __esm({
|
|
|
36567
36567
|
var overview_default;
|
|
36568
36568
|
var init_overview = __esm({
|
|
36569
36569
|
"src/skill/overview.md"() {
|
|
36570
|
-
overview_default = '# Kombai design\n\nDesign UI on a hosted Kombai canvas; design systems need no canvas. `kombai <command> --help` gives its\nflags. Read each JSON result: next can be a command, a link or advice. Follow it after handling the error\nand any required user choice.\nSkill text and default help are plain text. Tell the user in one line before and after each step that\ntakes more than a few seconds.\n\n{{RUN}}\n\nRun `kombai` outside any sandbox from the first try: it needs network and writes ~/.kombai.\n\n{{APP}}\n\n## Choose the task\n\n- New design: follow New designs below.\n- Existing canvas or node (a link, "On my Kombai canvas" message, or a named canvas): read\n `kombai skill actions`, pull the target and follow that request. An edit needs no taste; variants\n seeking new ideas do. Neither needs a new canvas.\n- Design systems (.ds): read `kombai skill design-system`.\n- Shapes, pictures or layout: read `kombai skill drawings`.\n- AI images/video the user asks Kombai for: read `kombai skill assets`.\n- Questions about Kombai itself (account, credits, data, setup): read `kombai skill faq`.\n\nAt the start of each request, run `kombai whoami`. Unless it prints an email with no claim, read\n`kombai skill sign-in` and follow it. Read it before any `kombai login`.\n\n## New designs\n\n1. Read `kombai skill brief` and the repo before writing a brief outside the repo. The topic says\n when a reference or reflow skips taste.\n2. When taste is needed (never for a guest), tell the user their `kombai credits` balance first,\n then run `kombai taste start --brief <file> --variants <1-4>`, one per design. A run takes minutes:\n do step 3 meanwhile, then `kombai taste wait <run>`, again while its status is running. Follow\n directions.md. On TASTE_NO_CREDITS, call plans_card if among your tools, else show next\'s plan link; stop.\n3. Create a canvas: `kombai canvas create --name "<what it is>"`. Reuse one only when the user points\n to it or this conversation made it; `kombai canvas list` finds it by name (this repo\'s carry its\n `checkoutProjectId` as `projectId`). Ask if the target is unclear. On DESIGN_ORG_REQUIRED, ask which listed org, save `kombai config org <id>`, then retry.\n Read `kombai skill opening` and show the canvas once when creating or first using it.\n It starts private; share only when asked.\n4. Before writing HTML, read `kombai skill html`: it says how to build in passes. For each design,\n `kombai node start --canvas <id> --label "<label>"` (`--parent <node>` for a variant), then write\n and push it as that topic says.\n\n## Check a finished design\n\nAfter a design\'s last push, run the complete screenshot fill its next names in the background. Then run\n`kombai screenshot wait --canvas <id> --node <node> --tiles` and inspect each image it prints.\
|
|
36570
|
+
overview_default = '# Kombai design\n\nDesign UI on a hosted Kombai canvas; design systems need no canvas. `kombai <command> --help` gives its\nflags. Read each JSON result: next can be a command, a link or advice. Follow it after handling the error\nand any required user choice.\nSkill text and default help are plain text. Tell the user in one line before and after each step that\ntakes more than a few seconds.\n\n{{RUN}}\n\nRun `kombai` outside any sandbox from the first try: it needs network and writes ~/.kombai.\n\n{{APP}}\n\n## Choose the task\n\n- New design: follow New designs below.\n- Existing canvas or node (a link, "On my Kombai canvas" message, or a named canvas): read\n `kombai skill actions`, pull the target and follow that request. An edit needs no taste; variants\n seeking new ideas do. Neither needs a new canvas.\n- Design systems (.ds): read `kombai skill design-system`.\n- Shapes, pictures or layout: read `kombai skill drawings`.\n- AI images/video the user asks Kombai for: read `kombai skill assets`.\n- Questions about Kombai itself (account, credits, data, setup): read `kombai skill faq`.\n\nAt the start of each request, run `kombai whoami`. Unless it prints an email with no claim, read\n`kombai skill sign-in` and follow it. Read it before any `kombai login`.\n\n## New designs\n\n1. Read `kombai skill brief` and the repo before writing a brief outside the repo. The topic says\n when a reference or reflow skips taste.\n2. When taste is needed (never for a guest), tell the user their `kombai credits` balance first,\n then run `kombai taste start --brief <file> --variants <1-4>`, one per design. A run takes minutes:\n do step 3 meanwhile, then `kombai taste wait <run>`, again while its status is running. Follow\n directions.md. On TASTE_NO_CREDITS, call plans_card if among your tools, else show next\'s plan link; stop.\n3. Create a canvas: `kombai canvas create --name "<what it is>"`. Reuse one only when the user points\n to it or this conversation made it; `kombai canvas list` finds it by name (this repo\'s carry its\n `checkoutProjectId` as `projectId`). Ask if the target is unclear. On DESIGN_ORG_REQUIRED, ask which listed org, save `kombai config org <id>`, then retry.\n Read `kombai skill opening` and show the canvas once when creating or first using it.\n It starts private; share only when asked.\n4. Before writing HTML, read `kombai skill html`: it says how to build in passes. For each design,\n `kombai node start --canvas <id> --label "<label>"` (`--parent <node>` for a variant), then write\n and push it as that topic says.\n\n## Check a finished design\n\nAfter a design\'s last push, run the complete screenshot fill its next names in the background. Then run\n`kombai screenshot wait --canvas <id> --node <node> --tiles` and inspect each image it prints.\nFix and push again, no node lock, at most 3 rounds. On CLI_NO_BROWSER or CLI_LAUNCH_FAILED from fill,\nask before the roughly 100 MB download; then `kombai browser install --yes` and retry fill.\nIf wait reports CLI_NOTHING_RENDERING, run its suggested fill only if none is running; on\nCLI_SCREENSHOT_FAILED, inspect the failure reason before retrying.\n\n## Recover from errors\n\nExit 2 is not always a changed node.\nFor DESIGN_NODE_CHANGED on node push, merge the stored version at error.details.remote into your\nfile, then `kombai node push --canvas <id> --node <node> --merged`. Only to discard your edit, use\n`kombai node pull --canvas <id> --node <node> --discard`.\n\nRun commands that change a canvas\'s files (node start, node push, node pull, canvas pull, canvas push)\none at a time per canvas, and edit files only between them; screenshot fill and screenshot wait can run\nbeside them.\n\nExit codes: 0 done, 1 failed, 2 refused or conflict, 3 not signed in, 4 timed out. A wait timeout\ndoes not mean the work failed: follow its next; check a fill\'s result if no image arrives.\n';
|
|
36571
36571
|
}
|
|
36572
36572
|
});
|
|
36573
36573
|
|
|
@@ -37772,7 +37772,7 @@ var init_node = __esm({
|
|
|
37772
37772
|
};
|
|
37773
37773
|
nodeLock = {
|
|
37774
37774
|
name: "node lock",
|
|
37775
|
-
summary: "Mark a design as being edited, so the canvas shows it busy: run it before you pull and change a design already on the canvas
|
|
37775
|
+
summary: "Mark a design as being edited, so the canvas shows it busy: run it before you pull and change a design already on the canvas. The fixes after a push take none. A new design needs none: the canvas shows its placeholder busy. It lasts 10 minutes; run it again to keep it. node push ends it.",
|
|
37776
37776
|
flags: {
|
|
37777
37777
|
canvas: { type: "string", required: true, placeholder: "<id|link>", check: canvasRefProblem },
|
|
37778
37778
|
node: { type: "string", required: true, placeholder: "<id>", check: (value) => nodeIdProblem(value) }
|
package/dist/launch.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { dirname, join } from 'node:path';
|
|
|
7
7
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
8
8
|
|
|
9
9
|
// The version that wrote this file: a published one, so its npx line always works. Filled in by the build.
|
|
10
|
-
const WRITTEN_BY = '0.2.
|
|
10
|
+
const WRITTEN_BY = '0.2.1';
|
|
11
11
|
const root = dirname(fileURLToPath(import.meta.url));
|
|
12
12
|
|
|
13
13
|
// On stderr, as the CLI's own start-up errors are: under `kombai mcp` stdout carries MCP frames only.
|
|
@@ -2679,7 +2679,7 @@ body {
|
|
|
2679
2679
|
flex: none;
|
|
2680
2680
|
color: var(--primary, #48de94);
|
|
2681
2681
|
}
|
|
2682
|
-
`;function cv({items:e}){return(0,d0.jsx)(sY,{"aria-label":"Included with your account",children:e.map(t=>(0,d0.jsxs)("li",{children:[(0,d0.jsx)(un,{size:13,strokeWidth:2.5,"aria-hidden":!0}),t]},t))})}var st=E(Gt()),jO="chat_sign_in",iY="chat_guest",lY=20,QY=11*6e4,uv="Sign-in didn't finish.";var k5={state:"idle",matchCode:null,orgs:[],failure:uv,moved:null,besideChat:!1,openLink:null};function cY(e,t){switch(e.status){case"signing_in":return{...k5,state:"waiting",matchCode:e.match_code??t.matchCode,openLink:e.openLink??t.openLink};case"claimed":return{...k5,state:"claimed",moved:e.moved,besideChat:e.besideChat};case"needs_org":return{...k5,state:"needs_org",orgs:e.orgs};case"claim_pending":return{...k5,state:"pending"};case"signed_in":return{...k5,state:"signed_in"};case"guest":return{...k5,state:"guest"};case"failed":return{...k5,state:"failed",failure:e.error?.message??uv}}}function qO({data:e,host:t,subsystem:r,intro:a}){let[o,n]=(0,Ca.useState)(k5),[s,i]=(0,Ca.useState)(!1),l=(0,Ca.useRef)(!1),Q=(0,Ca.useRef)(0),c=(0,Ca.useRef)(!0);(0,Ca.useEffect)(()=>(c.current=!0,()=>{c.current=!1}),[]);let u=p=>void t.openLink(p).catch(v=>S1(v,{tags:{subsystem:r}})),d=async(p,v=jO)=>{if(l.current)return;l.current=!0;let b=++Q.current,L=()=>c.current&&Q.current===b;i(!0);let S=p,_=k5,x=Date.now()+QY;try{for(;;){let C=kO(await t.callTool(v,S));if(!L())return;if(C.status==="signing_in"&&Date.now()>=x){n({...k5,state:"failed"});return}if(_=cY(C,_),n(_),C.status==="signing_in"&&C.openNow&&_.openLink&&u(_.openLink),C.status!=="signing_in")return;S={wait:lY}}}catch(C){S1(C,{tags:{subsystem:r}}),L()&&n({...k5,state:"failed",failure:C instanceof Error&&C.message?C.message:uv})}finally{Q.current===b&&(l.current=!1,c.current&&i(!1))}},f=()=>{Q.current++,l.current=!1,i(!1),n(k5)},g=()=>o.openLink?u(o.openLink):void t.callTool(jO,{reopen:!0}).catch(p=>S1(p,{tags:{subsystem:r}})),h=e.reason==="start"&&e.guest,y=(p,v=!0)=>(0,st.jsxs)(V6,{children:[v&&(0,st.jsx)(l9,{children:FO(e.appBrowser)}),h&&(0,st.jsx)(dn,{type:"button",$look:"outline",disabled:s,onClick:()=>void d({},iY),children:ZO}),(0,st.jsx)(dn,{type:"button",disabled:s,onClick:()=>void d({wait:0}),children:p})]}),m=a??PO(e);switch(o.state){case"idle":return(0,st.jsx)(Sa,{guest:e.reason!=="start",title:m.title,body:m.body,children:y("Sign in")});case"waiting":{let p=BO(e.appBrowser);return(0,st.jsxs)(Sa,{title:p.title,body:p.body,children:[(0,st.jsx)($O,{matchCode:o.matchCode,status:d9.status}),(0,st.jsxs)(V6,{children:[(0,st.jsx)(dn,{type:"button",$look:"plain",onClick:f,children:d9.cancel}),(0,st.jsx)(dn,{type:"button",$look:"outline",onClick:g,children:d9.reopen})]})]})}case"claimed":{let{moved:p,besideChat:v}=o,b=v?null:p?.url;return(0,st.jsxs)(Sa,{guest:!1,done:!0,title:E4.title,body:E4.body,children:[p?.name?(0,st.jsx)(zO,{name:p.name,detail:UO(p.designs)}):(0,st.jsx)(cv,{items:iv}),(0,st.jsxs)(V6,{children:[(0,st.jsx)(l9,{children:v?E4.besideChat:E4.next}),b&&(0,st.jsx)(dn,{type:"button",$look:"outline",onClick:()=>u(b),children:E4.open})]})]})}case"needs_org":return(0,st.jsx)(Sa,{title:Qv.title,body:Qv.body,children:(0,st.jsx)(GO,{children:o.orgs.map(p=>(0,st.jsx)(LO,{disabled:s,onClick:()=>void d({claimOrg:p.id}),children:p.name},p.id))})});case"pending":return(0,st.jsx)(Sa,{guest:!1,title:lv.title,body:lv.body,children:y("Try again",!1)});case"guest":return(0,st.jsx)(Sa,{done:!0,title:f9.title,body:f9.body,children:(0,st.jsxs)(V6,{children:[(0,st.jsx)(l9,{children:f9.next}),(0,st.jsx)(dn,{type:"button",$look:"outline",disabled:s,onClick:()=>void d({wait:0}),children:"Sign in"})]})});case"signed_in":return(0,st.jsx)(Sa,{guest:!1,done:!0,title:sv.title,body:sv.body,children:(0,st.jsx)(cv,{items:iv})});case"failed":return(0,st.jsxs)(Sa,{title:m.title,body:m.body,children:[(0,st.jsx)(_O,{children:o.failure}),y("Sign in")]})}}function uY(e){let t=e.structuredContent;return e.isError!==!0&&u0(t)&&Array.isArray(t.briefs)?{run_id:typeof t.run_id=="string"?t.run_id:"",thread_name:typeof t.thread_name=="string"?t.thread_name:null,briefs:t.briefs.filter(r=>typeof r=="string"&&r.length>0)}:EO(e)||"Kombai sent no taste brief."}function WO(e,t){return RO({name:"kombai-design-taste",version:e,subsystem:"mcp-design-taste"},{onTheme:t.onTheme,onFailure:t.onFailure,onToolResult:r=>{let a=DO(r);if(a){t.onSignIn(a);return}let o=uY(r);typeof o=="string"?t.onFailure(o):t.onData(o)}})}var bk=E(H());var fn={primary:16};var dY={LAUNCH_FAILED:"launch_failed",PAGE_LOAD_FAILED:"page_load_failed",DETECTION_FAILED:"detection_failed",OPEN_PAGE_IN_CONTEXT_FAILED:"open_page_in_context_failed",EXTENSION_LOAD_FAILED:"extension_load_failed",CONTEXT_CREATION_FAILED:"context_creation_failed",PROXY_SETUP_FAILED:"proxy_setup_failed",NAMESPACE_INJECTION_FAILED:"namespace_injection_failed",PAGE_NAVIGATION_FAILED:"page_navigation_failed",CONNECTION_FAILED:"connection_failed",APP_INITIALIZATION_FAILED:"app_initialization_failed",API_INJECTION_FAILED:"api_injection_failed",API_VALIDATION_FAILED:"api_validation_failed",PAGE_META_INJECTION_FAILED:"page_meta_injection_failed",IFRAME_LOAD_FAILED:"iframe_load_failed",IFRAME_DISPOSAL_FAILED:"iframe_disposal_failed",IFRAME_REMOVAL_FAILED:"iframe_removal_failed",HEALTH_CHECK_FAILED:"health_check_failed",SCRIPT_EXECUTION_FAILED:"script_execution_failed",SCRIPT_TIMEOUT:"script_timeout",FILE_READ_FAILED:"file_read_failed",DIRECTORY_FOUND_KOMBAI_TEMP_DIR:"directory_found_kombai_temp_dir",DIRECTORY_DELETE_FAILED:"directory_delete_failed",IMAGE_LIMIT_EXCEEDED:"image_limit_exceeded",TEXT_LENGTH_LIMIT_EXCEEDED:"text_length_limit_exceeded",BINARY_FILE_FOUND_IN_TEMP_DIR:"binary_file_found_in_temp_dir",PAGE_METADATA_FETCH_ERROR:"page_metadata_fetch_error",VALIDATION_FAILED:"validation_failed",DEBUGGING_PORT_READ_FAILED:"debugging_port_read_failed",DEBUGGING_PORT_PARSE_FAILED:"debugging_port_parse_failed",RAW_BROWSER_NOT_FOUND:"raw_browser_not_found",PROXY_NOT_INSTALLED:"proxy_not_installed",USER_DATA_DIR_LOCKED:"user_data_dir_locked",BROWSER_NOT_LAUNCHED:"browser_not_launched",WINDOW_ID_FETCH_FAILED:"window_id_fetch_failed",PAGE_ID_FETCH_FAILED:"page_id_fetch_failed",INVALID_PAGE_URL:"invalid_page_url",RESOURCE_FILE_URL_NOT_SUPPORTED:"resource_file_url_not_supported",RXJS_INJECTION_FAILED:"rxjs_injection_failed",BROWSER_AUDIT_FAILED:"browser_audit_failed",EXTENSION_APP_NOT_INITIALIZED:"extension_app_not_initialized",PAGE_NOT_FOUND:"page_not_found",PAGE_INITIALIZATION_FAILED:"page_initialization_failed",PAGE_REFRESH_SETUP_FAILED:"page_refresh_setup_failed",NEW_PAGE_SETUP_FAILED:"new_page_setup_failed",PAGE_DISPOSE_FAILED:"page_dispose_failed",SERVICES_RESET_FAILED:"services_reset_failed"},fY={SYNC_FAILED:"sync_failed"},pY={PAGE_CLOSED:"page_closed",PAGE_DETACHED:"page_detached",NAVIGATION_INTERRUPTED:"navigation_interrupted",DOM_NOT_AVAILABLE:"dom_not_available"},mY={NOT_INITIALIZED:"not_initialized",TIMEOUT:"timeout",OPERATION_FAILED:"operation_failed",INJECTION_FAILED:"injection_failed",CHANNEL_NOT_READY:"channel_not_ready",VALIDATION_FAILED:"validation_failed",FIBER_NODE_NOT_FOUND:"fiber_node_not_found",RESOURCE_NOT_FOUND:"resource_not_found",NODE_ID_NOT_FOUND_FOR_SELECTOR:"node_id_not_found_for_selector",CDP_SESSION_FAILED_TO_CREATE:"cdp_session_failed_to_create",CDP_SESSION_ERROR:"cdp_session_error",PAGE_API_NOT_AVAILABLE:"page_api_not_available"},gY={PAGE_OPEN_FAILED:"page_open_failed",PAGE_REOPEN_FAILED:"page_reopen_failed",PAGE_CLOSE_FAILED:"page_close_failed",PAGE_REFRESH_FAILED:"page_refresh_failed",PAGE_FOCUS_FAILED:"page_focus_failed",PAGE_NOT_FOUND:"page_not_found",APP_NOT_FOUND:"app_not_found",BROWSER_CLOSE_FAILED:"browser_close_failed",INITIALIZATION_FAILED:"initialization_failed",SUBSCRIPTION_SETUP_FAILED:"subscription_setup_failed",SUBSCRIPTION_CLEANUP_FAILED:"subscription_cleanup_failed",DOM_SERVICES_NOT_INITIALIZED:"dom_services_not_initialized",SNAPSHOT_CACHE_UPDATE_FAILED:"snapshot_cache_update_failed",SNAPSHOT_CACHE_PURGE_FAILED:"snapshot_cache_purge_failed",SNAPSHOT_CACHE_NOT_FOUND:"snapshot_cache_not_found",SNAPSHOT_NOT_FOUND_IN_CACHE:"snapshot_not_found_in_cache",SCREENSHOT_READ_FAILED:"screenshot_read_failed",SCREENSHOT_DIRECTORY_EMPTY_FAILED:"screenshot_directory_empty_failed",DATA_PROCESSING_FAILED:"data_processing_failed",CHAT_INTEGRATION_FAILED:"chat_integration_failed",CONTEXT_STATE_SYNC_FAILED:"context_state_sync_failed",SEND_TO_CHAT_FAILED:"send_to_chat_failed",CHANNEL_COMMUNICATION_INITIALIZATION_FAILED:"channel_communication_initialization_failed"},hY={BROWSER_OPEN_ERROR:"BROWSER_OPEN_ERROR",BROWSER_CLOSE_ERROR:"BROWSER_CLOSE_ERROR",BROWSER_EXECUTE_ERROR:"BROWSER_EXECUTE_ERROR",BROWSER_OPEN_FAILED_REASON_NOT_PROVIDED:"BROWSER_OPEN_FAILED_REASON_NOT_PROVIDED",BROWSER_NOT_FOUND:"BROWSER_NOT_FOUND",INVALID_BROWSER_TYPE:"INVALID_BROWSER_TYPE",INVALID_URL:"INVALID_URL",INVALID_CODE:"INVALID_CODE",INVALID_DESCRIPTION:"INVALID_DESCRIPTION",INVALID_PAGE_ID:"INVALID_PAGE_ID",INVALID_ACTION_TYPE:"INVALID_ACTION_TYPE"},vY={AGENT_PAGE_OPEN_FAILED:"agent_page_open_failed",AGENT_PAGE_CLOSE_FAILED:"agent_page_close_failed",AGENT_BANNER_INJECTION_FAILED:"agent_banner_injection_failed",AGENT_BROWSER_AUDIT_FAILED:"agent_browser_audit_failed"},yY={NOT_INITIALIZED:"session_not_initialized",INITIALIZATION_FAILED:"session_initialization_failed",HANDLER_NOT_REGISTERED:"session_handler_not_registered",SNAPSHOT_FAILED:"session_snapshot_failed"},bY={SOCKET_SERVER_START_FAILED:"socket_server_start_failed",SOCKET_SERVER_STOP_FAILED:"socket_server_stop_failed",SOCKET_SERVER_NOT_INITIALIZED:"socket_server_not_initialized",SOCKET_CHANNEL_EMIT_FAILED:"socket_channel_emit_failed",SOCKET_CHANNEL_NOT_FOUND:"socket_channel_not_found",SOCKET_CLIENT_CONNECTION_FAILED:"socket_client_connection_failed",SOCKET_CLIENT_UPDATE_REJECTED:"socket_client_update_rejected"},_Y={SERVER_START_FAILED:"server_start_failed",SERVER_STOP_FAILED:"server_stop_failed",SERVER_RESTART_FAILED:"server_restart_failed",SERVER_DISPOSAL_FAILED:"server_disposal_failed",PORT_ALLOCATION_FAILED:"port_allocation_failed",PORT_NOT_AVAILABLE:"port_not_available",DIRECTORY_CREATION_FAILED:"directory_creation_failed",DIRECTORY_VALIDATION_FAILED:"directory_validation_failed",FILE_READ_FAILED:"file_read_failed",FILE_SERVE_FAILED:"file_serve_failed",VIRTUAL_FILE_GENERATION_FAILED:"virtual_file_generation_failed",VIRTUAL_FILE_REGISTRATION_FAILED:"virtual_file_registration_failed",REQUEST_HANDLER_FAILED:"request_handler_failed",INVALID_REQUEST_PATH:"invalid_request_path",INVALID_STATE_TRANSITION:"invalid_state_transition",SERVER_ALREADY_DISPOSED:"server_already_disposed"},KO={...fY,...pY,...mY,...gY,...vY,...hY,...dY,..._Y,...bY,...yY};var R4={UNAUTHORIZED:"UNAUTHORIZED",FORBIDDEN_WAF:"FORBIDDEN_WAF",FORBIDDEN_CORS:"FORBIDDEN_CORS",AUTH_FAILED:"AUTH_FAILED",INTERNAL_SERVER_ERROR:"INTERNAL_SERVER_ERROR",DESIGN_LIBRARY_FETCH_ERROR:"DESIGN_LIBRARY_FETCH_ERROR",UNHANDLED_ERROR:"UNHANDLED_ERROR",BAD_REQUEST:"BAD_REQUEST",UI_NETWORK_ERROR:"UI_NETWORK_ERROR",THREAD_NOT_FOUND:"THREAD_NOT_FOUND",LOGOUT_CLEANUP_VALIDATION_ERROR:"LOGOUT_CLEANUP_VALIDATION_ERROR",LOGOUT_ERROR:"LOGOUT_ERROR",CODE_VERIFICATION_ERROR:"CODE_VERIFICATION_ERROR",LOGIN_CALLBACK_ERROR:"LOGIN_CALLBACK_ERROR",OAUTH_CALLBACK_ERROR:"OAUTH_CALLBACK_ERROR",SECURE_STORAGE_UNAVAILABLE:"SECURE_STORAGE_UNAVAILABLE",USER_RULES_VALIDATION_ERROR:"USER_RULES_VALIDATION_ERROR",CODEGEN_VALIDATION_ERROR:"CODEGEN_VALIDATION_ERROR",NEW_USER_RULES_VALIDATION_ERROR:"NEW_USER_RULES_VALIDATION_ERROR",STREAMING_VALIDATION_ERROR:"STREAMING_VALIDATION_ERROR",UNSUPPORTED_WS_VALIDATION_ERROR:"UNSUPPORTED_WS_VALIDATION_ERROR",PREVIEW_ERROR_VALIDATION_ERROR:"PREVIEW_ERROR_VALIDATION_ERROR",RESOLVE_INPUT_VALIDATION_ERROR:"RESOLVE_INPUT_VALIDATION_ERROR",FIX_CODE_VALIDATION_ERROR:"FIX_CODE_VALIDATION_ERROR",SKIP_VALIDATION_ERROR:"SKIP_VALIDATION_ERROR",WORKING_SET_VALIDATION_ERROR:"WORKING_SET_VALIDATION_ERROR",INVALID_MESSAGE_VALIDATION_ERROR:"INVALID_MESSAGE_VALIDATION_ERROR",CODEGEN_ALREADY_IN_PROGRESS_ERROR:"CODEGEN_ALREADY_IN_PROGRESS_ERROR",INVALID_FIGMA_VALIDATION_ERROR:"INVALID_FIGMA_VALIDATION_ERROR",INVALID_SOCKET_RESPONSE_ERROR:"INVALID_SOCKET_RESPONSE_ERROR",MISSING_EDITOR_CONTENT_VALIDATION_ERROR:"MISSING_EDITOR_CONTENT_VALIDATION_ERROR",FIGMA_CONNECT_MESSAGE_VALIDATION_ERROR:"FIGMA_CONNECT_MESSAGE_VALIDATION_ERROR",UI_ERROR:"UI_ERROR",LOADER_LEFT_OPEN:"LOADER_LEFT_OPEN",WEBVIEW_REQUEST_TIMEOUT:"WEBVIEW_REQUEST_TIMEOUT",WEBVIEW_REQUEST_ABORTED:"WEBVIEW_REQUEST_ABORTED",CORE_UNAVAILABLE:"CORE_UNAVAILABLE",EDITOR_SURFACE_MISSING:"EDITOR_SURFACE_MISSING",PROJECT_REQUIRED:"PROJECT_REQUIRED",CODEX_FAILED:"CODEX_FAILED",CODEX_CONTINUABLE:"CODEX_CONTINUABLE",CLAUDE_CODE_FAILED:"CLAUDE_CODE_FAILED",CLAUDE_CODE_CONTINUABLE:"CLAUDE_CODE_CONTINUABLE",CODEX_PLAN_LIMIT:"CODEX_PLAN_LIMIT",CLAUDE_CODE_PLAN_LIMIT:"CLAUDE_CODE_PLAN_LIMIT",CODEX_AUTH_FAILED:"CODEX_AUTH_FAILED",CODEX_NOT_INSTALLED:"CODEX_NOT_INSTALLED",CLAUDE_CODE_NOT_INSTALLED:"CLAUDE_CODE_NOT_INSTALLED",CODEX_SESSION_BUSY:"CODEX_SESSION_BUSY",CLAUDE_CODE_AT_CAPACITY:"CLAUDE_CODE_AT_CAPACITY",AGENT_WORKSPACE_MISSING:"AGENT_WORKSPACE_MISSING",THREAD_SESSION_MISMATCH:"THREAD_SESSION_MISMATCH",SEND_DISPATCH_FAILED:"SEND_DISPATCH_FAILED",SOCKET_TIMEOUT:"SOCKET_TIMEOUT",SOCKET_CONNECTION_ERROR:"SOCKET_CONNECTION_ERROR",GLOBAL_STORE_ERROR:"GLOBAL_STORE_ERROR",THREAD_LEASE_LOST:"THREAD_LEASE_LOST",SOCKET_SEND_ERROR:"SOCKET_SEND_ERROR",SOCKET_SEND_ERROR_CALLBACK:"SOCKET_SEND_ERROR_CALLBACK2",UNHANDLED_SOCKET_ERROR:"UNHANDLED_SOCKET_ERROR",SOCKET_REJECTING_WAITING_REQUEST:"SOCKET_REJECTING_WAITING_REQUEST",SOCKET_MAX_RETRIES:"SOCKET_MAX_RETRIES",SOCKET_INITIALIZATION_ERROR:"SOCKET_INITIALIZATION_ERROR",SOCKET_SEND_BLOCKING_TOOL_REPLY_ERROR:"SOCKET_SEND_BLOCKING_TOOL_REPLY_ERROR",SOCKET_FRAME_DROPPED:"SOCKET_FRAME_DROPPED",FORCE_UPDATE_ERROR:"FORCE_UPDATE_ERROR",FIGMA_API_ERROR:"FIGMA_API_ERROR",FIGMA_CONNECT_ERROR:"FIGMA_CONNECT_ERROR",FIGMA_TOKEN_NOT_FOUND:"FIGMA_TOKEN_NOT_FOUND",REPLACE_FILE_CONTENT_ERROR:"REPLACE_FILE_CONTENT_ERROR",SETUP_DIFF_DIRECTORY_ERROR:"SETUP_DIFF_DIRECTORY_ERROR",CLEAN_UP_DIFF_ERROR:"CLEAN_UP_DIFF_ERROR",WRITE_DIFF_FILE_ERROR:"WRITE_DIFF_FILE_ERROR",GET_ENCLOSING_SYMBOL_ERROR:"GET_ENCLOSING_SYMBOL_ERROR",GET_REFERENCES_ERROR:"GET_REFERENCES_ERROR",WORKSPACE_NOT_FOUND:"WORKSPACE_NOT_FOUND",WALK_DIR_ERROR:"WALK_DIR_ERROR",FILE_NOT_FOUND:"FILE_NOT_FOUND",TS_CONFIG_PARSING_FAILED:"TS_CONFIG_PARSING_FAILED",FILE_NOT_SUPPORTED_FOR_REFERENCES:"FILE_NOT_SUPPORTED_FOR_REFERENCES",WRITE_FILE_ERROR:"WRITE_FILE_ERROR",FILE_REFERENCE_ERROR:"FILE_REFERENCE_ERROR",READ_RANGE_ERROR:"READ_RANGE_ERROR",S3_FETCH_ERROR:"S3_FETCH_ERROR",S3_PUT_ERROR:"S3_PUT_ERROR",IMAGE_LOST:"IMAGE_LOST",IMAGE_STORE_WRITE_ERROR:"IMAGE_STORE_WRITE_ERROR",IMAGE_STORE_READ_ERROR:"IMAGE_STORE_READ_ERROR",IMAGE_STORE_FALLBACK_ENGAGED:"IMAGE_STORE_FALLBACK_ENGAGED",FIGMA_SNAPSHOT_UNAVAILABLE:"FIGMA_SNAPSHOT_UNAVAILABLE",FIGMA_SNAPSHOT_TOO_LARGE:"FIGMA_SNAPSHOT_TOO_LARGE",FIGMA_SNAPSHOT_NOT_READY:"FIGMA_SNAPSHOT_NOT_READY",DATA_URL_TREATED_AS_FILE:"DATA_URL_TREATED_AS_FILE",GET_FILE_CONTENTS_ERROR:"GET_FILE_CONTENTS_ERROR",IS_DIRECTORY_ERROR:"IS_DIRECTORY_ERROR",GET_FILES_ERROR:"GET_FILES_ERROR",NOT_RELATIVE_TO_GITIGNORE:"NOT_RELATIVE_TO_GITIGNORE",KOMBAI_FOLDER_SYNC_ERROR:"KOMBAI_FOLDER_SYNC_ERROR",PREVIEW_FOLDER_NOT_FOUND:"PREVIEW_FOLDER_NOT_FOUND",FILE_ICON_ERROR:"FILE_ICON_ERROR",CDN_FETCH_ERROR:"CDN_FETCH_ERROR",BINARY_FETCH_ERROR:"BINARY_FETCH_ERROR",BINRARY_NOT_FOUND_AT_EXPECTED_PATH:"BINRARY_NOT_FOUND_AT_EXPECTED_PATH",PAYLOAD_PARSING_ERROR:"PAYLOAD_PARSING_ERROR",DOM_ELEMENT_NOT_FOUND:"DOM_ELEMENT_NOT_FOUND",INVALID_CURSOR_POSITION:"INVALID_CURSOR_POSITION",INDEXING_ERROR:"INDEXING_ERROR",TECH_STACK_READ_ERROR:"TECH_STACK_READ_ERROR",TECH_STACK_WRITE_ERROR:"TECH_STACK_WRITE_ERROR",TECH_STACK_INDEX_METADATA_READ_ERROR:"TECH_STACK_INDEX_METADATA_READ_ERROR",TECH_STACK_INDEX_METADATA_WRITE_ERROR:"TECH_STACK_INDEX_METADATA_WRITE_ERROR",RESOLVE_INPUT_ERROR:"RESOLVE_INPUT_ERROR",GET_SELECTED_CODE_PROMPT_CONTEXT_ERROR:"GET_SELECTED_CODE_PROMPT_CONTEXT_ERROR",SYSTEM_METADATA_FETCH_ERROR:"SYSTEM_METADATA_FETCH_ERROR",USER_FIGMA_FORBIDDEN_FIGMA:"USER_FIGMA_FORBIDDEN_FIGMA",USER_FIGMA_NOT_FRAME_LIKE:"USER_FIGMA_NOT_FRAME_LIKE",WEBVIEW_DIDNT_RESPOND:"WEBVIEW_DIDNT_RESPOND",INVALID_VIEW_NAME:"INVALID_VIEW_NAME",INVALID_ARGUMENT:"INVALID_ARGUMENT",HISTORY_LOAD_ERROR:"HISTORY_LOAD_ERROR",HISTORY_LIST_ERROR:"HISTORY_LIST_ERROR",HISTORY_DELETE_ERROR:"HISTORY_DELETE_ERROR",HISTORY_RENAME_ERROR:"HISTORY_RENAME_ERROR",HISTORY_SHARE_ERROR:"HISTORY_SHARE_ERROR",HISTORY_RESUME_ERROR:"HISTORY_RESUME_ERROR",HISTORY_TRUNCATE_ERROR:"HISTORY_TRUNCATE_ERROR",HISTORY_SAVE_FILES_SAVED_CHECKPOINT_ERROR:"HISTORY_SAVE_FILES_SAVED_CHECKPOINT_ERROR",HISTORY_GET_CHECKPOINT_FILES_ERROR:"HISTORY_GET_CHECKPOINT_FILES_ERROR",HISTORY_GET_USAGE_LOGS_ERROR:"HISTORY_GET_USAGE_LOGS_ERROR",HISTORY_REPORT_THREAD_ACTION_ERROR:"HISTORY_REPORT_THREAD_ACTION_ERROR",THREAD_SYNC_DISABLED:"THREAD_SYNC_DISABLED",TOKEN_USAGE_INFO_ERROR:"TOKEN_USAGE_INFO_ERROR",EXTENSION_MESSAGE_HANDLER_ERROR:"EXTENSION_MESSAGE_HANDLER_ERROR",EXTENSION_SETTING_USER_INSTRUCTIONS_ERROR:"EXTENSION_SETTING_USER_INSTRUCTIONS_ERROR",EXTENSION_GETTING_USER_INSTRUCTIONS_ERROR:"EXTENSION_GETTING_USER_INSTRUCTIONS_ERROR",CREATE_DIRECTORY_ERROR:"CREATE_DIRECTORY_ERROR",DELETE_FILE_ERROR:"DELETE_FILE_ERROR",INVALID_WEBVIEW_TYPE:"INVALID_WEBVIEW_TYPE",GLOBAL_STATE_CONTEXT_MANAGER_NOT_INITIALIZED:"GLOBAL_STATE_CONTEXT_MANAGER_NOT_INITIALIZED",FAILED_TO_RUN_TOOL:"FAILED_TO_RUN_TOOL",AGENT_NOT_FOUND:"AGENT_NOT_FOUND",AGENT_FAILED:"AGENT_FAILED",PARENT_NOT_FOUND:"PARENT_NOT_FOUND",INVALID_AGENT_TYPE:"INVALID_AGENT_TYPE",INVALID_AGENT_STATE:"INVALID_AGENT_STATE",INVALID_AGENT_OPERATION:"INVALID_AGENT_OPERATION",NO_TOOLS_TO_RUN:"NO_TOOLS_TO_RUN",INVALID_TOOL_INPUT:"INVALID_TOOL_INPUT",TERMINAL_EXECUTION_ERROR:"TERMINAL_EXECUTION_ERROR",POWER_SHELL_VERSION_ERROR:"POWER_SHELL_VERSION_ERROR",FETCH_IMAGE_CONTENT_ERROR:"FETCH_IMAGE_CONTENT_ERROR",IMAGE_FILE_OPEN_ERROR:"IMAGE_FILE_OPEN_ERROR",MESSAGE_SENT_POSTHOG_ERROR:"MESSAGE_SENT_POSTHOG_ERROR",USER_ID_NOT_FOUND_FOR_SETUP_SCRIPT:"USER_ID_NOT_FOUND_FOR_SETUP_SCRIPT",USER_RULES_INITIALIZATION_ERROR:"USER_RULES_INITIALIZATION_ERROR",USER_RULES_GET_FOR_CHAT_ERROR:"USER_RULES_GET_FOR_CHAT_ERROR",ORG_RULES_LIST_ERROR:"ORG_RULES_LIST_ERROR",ORG_RULES_GET_ERROR:"ORG_RULES_GET_ERROR",ORG_RULES_PUBLISH_ERROR:"ORG_RULES_PUBLISH_ERROR",ORG_RULES_OVERRIDE_ERROR:"ORG_RULES_OVERRIDE_ERROR",ORG_RULES_DELETE_ERROR:"ORG_RULES_DELETE_ERROR",ORG_RULES_USE_ERROR:"ORG_RULES_USE_ERROR",ORG_COMMANDS_LIST_ERROR:"ORG_COMMANDS_LIST_ERROR",ORG_COMMANDS_GET_ERROR:"ORG_COMMANDS_GET_ERROR",ORG_COMMANDS_PUBLISH_ERROR:"ORG_COMMANDS_PUBLISH_ERROR",ORG_COMMANDS_OVERRIDE_ERROR:"ORG_COMMANDS_OVERRIDE_ERROR",ORG_COMMANDS_DELETE_ERROR:"ORG_COMMANDS_DELETE_ERROR",ORG_COMMANDS_USE_ERROR:"ORG_COMMANDS_USE_ERROR",THREAD_FILE_HISTORY_MANAGER_ERROR:"THREAD_FILE_HISTORY_MANAGER_ERROR",THREAD_FILE_HISTORY_CONTENT_NOT_FOUND:"THREAD_FILE_HISTORY_CONTENT_NOT_FOUND",FILE_NOT_FOUND_IN_WORKSPACE:"FILE_NOT_FOUND_IN_WORKSPACE",THREAD_FILE_HISTORY_MANAGER_NOT_INITIALIZED:"THREAD_FILE_HISTORY_MANAGER_NOT_INITIALIZED",INVALID_OPERATION:"INVALID_OPERATION",INVALID_ACTION_ON_FILE_HISTORY:"INVALID_ACTION_ON_FILE_HISTORY",FILE_WATCHER_SETUP_ERROR:"FILE_WATCHER_SETUP_ERROR",FILE_WATCHER_CREATE_ERROR:"FILE_WATCHER_CREATE_ERROR",FILE_WATCHER_CLEANUP_ERROR:"FILE_WATCHER_CLEANUP_ERROR",FILE_WATCHER_REFRESH_ERROR:"FILE_WATCHER_REFRESH_ERROR",FILE_HISTORY_ADD_OPERATION_ERROR:"FILE_HISTORY_ADD_OPERATION_ERROR",FILE_HISTORY_DELETE_OPERATION_ERROR:"FILE_HISTORY_DELETE_OPERATION_ERROR",FILE_HISTORY_RESTORE_ERROR:"FILE_HISTORY_RESTORE_ERROR",FILE_HISTORY_ACCEPT_ERROR:"FILE_HISTORY_ACCEPT_ERROR",FILE_HISTORY_REJECT_ERROR:"FILE_HISTORY_REJECT_ERROR",FILE_HISTORY_OPEN_ERROR:"FILE_HISTORY_OPEN_ERROR",FILE_CHANGE_HANDLER_ERROR:"FILE_CHANGE_HANDLER_ERROR",FILE_RESTORATION_ERROR:"FILE_RESTORATION_ERROR",WORKSPACE_ROOT_NOT_FOUND:"WORKSPACE_ROOT_NOT_FOUND",FILE_HISTORY_SAVE_ERROR:"FILE_HISTORY_SAVE_ERROR",FILE_HISTORY_INITIALIZATION_ERROR:"FILE_HISTORY_INITIALIZATION_ERROR",NO_OUTGOING_MESSAGE_TIMESTAMP_FOUND:"NO_OUTGOING_MESSAGE_TIMESTAMP_FOUND",USER_DRAFT_CLEAR_ERROR:"USER_DRAFT_CLEAR_ERROR",USER_DRAFT_SAVE_ERROR:"USER_DRAFT_SAVE_ERROR",USER_DRAFT_GET_ERROR:"USER_DRAFT_GET_ERROR",FIRST_TURN_MESSAGE_CLEAR_ERROR:"FIRST_TURN_MESSAGE_CLEAR_ERROR",MENTION_PICKER_HOST_ERROR:"MENTION_PICKER_HOST_ERROR",TOOL_USE_FILE_OPEN_ERROR:"TOOL_USE_FILE_OPEN_ERROR",TOOL_USE_FILE_HISTORY_ADD_ERROR:"TOOL_USE_FILE_HISTORY_ADD_ERROR",TOOL_USE_FILE_HISTORY_ROLLBACK_ERROR:"TOOL_USE_FILE_HISTORY_ROLLBACK_ERROR",TOOL_USE_EXECUTION_ERROR:"TOOL_USE_EXECUTION_ERROR",TOOL_USE_PROCESSING_ERROR:"TOOL_USE_PROCESSING_ERROR",TOOL_USE_INVALID_SOURCE:"TOOL_USE_INVALID_SOURCE",TOOL_USE_SPILLOVER_UNRESOLVED:"TOOL_USE_SPILLOVER_UNRESOLVED",AGENT_RESULT_ENVELOPE_UNRESOLVED:"AGENT_RESULT_ENVELOPE_UNRESOLVED",NON_BLOCKING_TOOL_EXECUTED:"NON_BLOCKING_TOOL_EXECUTED",BLOCKING_TOOL_TIMEOUT:"BLOCKING_TOOL_TIMEOUT",BLOCKING_TOOL_STOPPED:"BLOCKING_TOOL_STOPPED",FILESET_FETCH_HISTORY_ERROR:"FILESET_FETCH_HISTORY_ERROR",FILESET_KEEP_HISTORY_ERROR:"FILESET_KEEP_HISTORY_ERROR",FILESET_REJECT_HISTORY_ERROR:"FILESET_REJECT_HISTORY_ERROR",FILESET_FILE_OPEN_ERROR:"FILESET_FILE_OPEN_ERROR",FILESET_GET_FILE_HISTORY_ERROR:"FILESET_GET_FILE_HISTORY_ERROR",FILESET_ACCEPT_FILE_ERROR:"FILESET_ACCEPT_FILE_ERROR",FILESET_REJECT_FILE_ERROR:"FILESET_REJECT_FILE_ERROR",TOOL_EXECUTION_ERROR:"TOOL_EXECUTION_ERROR",...KO,GET_FEATURE_FLAG_ERROR:"GET_FEATURE_FLAG_ERROR",GET_ACTIVATION_CARD_ERROR:"GET_ACTIVATION_CARD_ERROR",KOMBAI_SUGGESTED_SETTINGS_FETCH_ERROR:"KOMBAI_SUGGESTED_SETTINGS_FETCH_ERROR",AI_SUGGESTED_SETTINGS_FETCH_ERROR:"AI_SUGGESTED_SETTINGS_FETCH_ERROR",BROWSER_STATE_VALIDATION_ERROR:"BROWSER_STATE_VALIDATION_ERROR",BROWSER_SERVER_NOT_FOUND:"BROWSER_SERVER_NOT_FOUND",FETCH_RECENTLY_ACCESSED_FILES_ERROR:"FETCH_RECENTLY_ACCESSED_FILES_ERROR",FETCH_LATEST_SESSION_THREAD_ID_ERROR:"FETCH_LATEST_SESSION_THREAD_ID_ERROR",ATTACHMENT_ERROR:"ATTACHMENT_ERROR",FAILED_TO_GET_SLASH_COMMAND_PROMPTS_DIRECTORY:"FAILED_TO_GET_SLASH_COMMAND_PROMPTS_DIRECTORY",SLASH_COMMAND_NOT_FOUND:"SLASH_COMMAND_NOT_FOUND",PARSE_LEGACY_COMMAND_DIRS_ERROR:"PARSE_LEGACY_COMMAND_DIRS_ERROR",OPEN_FILE_AFTER_CREATE_ERROR:"OPEN_FILE_AFTER_CREATE_ERROR",SETTINGS_ITEMS_LIST_ERROR:"SETTINGS_ITEMS_LIST_ERROR",SETTINGS_ITEMS_REQUEST_ERROR:"SETTINGS_ITEMS_REQUEST_ERROR",BROWSER_CLEAR_CACHE_DATA_FOR_LLM_ERROR:"BROWSER_CLEAR_CACHE_DATA_FOR_LLM_ERROR",FILE_PREVIEW_ERROR:"FILE_PREVIEW_ERROR",TERMINAL_TOOL_EXECUTION_ERROR:"TERMINAL_TOOL_EXECUTION_ERROR",BROWSER_DATA_UPLOAD_ERROR:"BROWSER_DATA_UPLOAD_ERROR",VSCODE_URI_PARSE_ERROR:"VSCODE_URI_PARSE_ERROR",MERMAID_RENDER_ERROR:"MERMAID_RENDER_ERROR",REFERRAL_UNKNOWN_ERROR:"REFERRAL_UNKNOWN_ERROR",REFERRAL_RESPONSE_VALIDATION_ERROR:"REFERRAL_RESPONSE_VALIDATION_ERROR",REFERRAL_GENERATE_CODE_ERROR:"REFERRAL_GENERATE_CODE_ERROR",REFERRAL_GENERATE_CODE_IPC_ERROR:"REFERRAL_GENERATE_CODE_IPC_ERROR",REFERRAL_UNEXPECTED_NOT_PAID_USER:"REFERRAL_UNEXPECTED_NOT_PAID_USER",REFERRAL_UNEXPECTED_TEAM_PLAN_USER:"REFERRAL_UNEXPECTED_TEAM_PLAN_USER",REFERRAL_REFEREE_STATUS_UNEXPECTED:"REFERRAL_REFEREE_STATUS_UNEXPECTED",REFERRAL_REFEREE_STATUS_FETCH_FAILED:"REFERRAL_REFEREE_STATUS_FETCH_FAILED",PAYMENT_LINK_RESPONSE_VALIDATION_ERROR:"PAYMENT_LINK_RESPONSE_VALIDATION_ERROR",SUBSCRIPTION_SCHEDULE_DOWNGRADE_ERROR:"SUBSCRIPTION_SCHEDULE_DOWNGRADE_ERROR",SUBSCRIPTION_CANCEL_SCHEDULED_DOWNGRADE_ERROR:"SUBSCRIPTION_CANCEL_SCHEDULED_DOWNGRADE_ERROR",SUBSCRIPTION_CANCEL_AT_PERIOD_END_ERROR:"SUBSCRIPTION_CANCEL_AT_PERIOD_END_ERROR",PLAN_FEATURE_MARKUP_UNPARSED:"PLAN_FEATURE_MARKUP_UNPARSED",PAYMENT_STRIPE_JS_LOAD_FAILED:"PAYMENT_STRIPE_JS_LOAD_FAILED",PAYMENT_CHALLENGE_THREW:"PAYMENT_CHALLENGE_THREW",PAYMENT_CHALLENGE_INCOMPLETE:"PAYMENT_CHALLENGE_INCOMPLETE",PAYMENT_CHALLENGE_ORPHANED_SUCCESS:"PAYMENT_CHALLENGE_ORPHANED_SUCCESS",PAYMENT_REQUEST_THREW:"PAYMENT_REQUEST_THREW",PAYMENT_ATTEMPT_ORPHANED:"PAYMENT_ATTEMPT_ORPHANED",PAYMENT_OUTCOME_UNHANDLED:"PAYMENT_OUTCOME_UNHANDLED",PAYMENT_CART_CHANGED_WHILE_CHARGING:"PAYMENT_CART_CHANGED_WHILE_CHARGING",PAYMENT_SETTLEMENT_UNCONFIRMED:"PAYMENT_SETTLEMENT_UNCONFIRMED",PAYMENT_SETTLEMENT_BACKSTOP_FIRED:"PAYMENT_SETTLEMENT_BACKSTOP_FIRED",PAYMENT_EMPTY_CART_SUBMIT:"PAYMENT_EMPTY_CART_SUBMIT",PAYMENT_NO_PLAN_SELECTED:"PAYMENT_NO_PLAN_SELECTED",PAYMENT_SEED_PLAN_UNRESOLVED:"PAYMENT_SEED_PLAN_UNRESOLVED",PAYMENT_CONFIRM_STEP_WITHOUT_CARDS:"PAYMENT_CONFIRM_STEP_WITHOUT_CARDS",PAYMENT_CONFIRM_CARD_WITHOUT_ORDER:"PAYMENT_CONFIRM_CARD_WITHOUT_ORDER",PAYMENT_ENVELOPE_OUTCOME_UNRECOGNISED:"PAYMENT_ENVELOPE_OUTCOME_UNRECOGNISED",PAYMENT_ATTEMPT_FAILED:"PAYMENT_ATTEMPT_FAILED",EXCALIDRAW_PNG_CREATION_ERROR:"EXCALIDRAW_PNG_CREATION_ERROR",SKILLS_SCAN_ERROR:"SKILLS_SCAN_ERROR",MCP_SERVER_CONFIG_ERROR:"MCP_SERVER_CONFIG_ERROR",MCP_WRITE_TOOLS_TO_DISK_ERROR:"MCP_WRITE_TOOLS_TO_DISK_ERROR",MCP_LIST_TOOLS_ERROR:"MCP_LIST_TOOLS_ERROR",MCP_LIST_RESOURCES_ERROR:"MCP_LIST_RESOURCES_ERROR",MCP_CLEAR_JSON_FILES_ERROR:"MCP_CLEAR_JSON_FILES_ERROR",MCP_DELETE_SERVER_CONFIG_FILE_ERROR:"MCP_DELETE_SERVER_CONFIG_FILE_ERROR",MCP_SERVER_RUNTIME_ERROR:"MCP_SERVER_RUNTIME_ERROR",MCP_WORKER_ERROR:"MCP_WORKER_ERROR",MCP_HOST_REQUEST_ERROR:"MCP_HOST_REQUEST_ERROR",MCP_TOOL_CALL_ERROR:"MCP_TOOL_CALL_ERROR",MCP_RESOURCE_READ_ERROR:"MCP_RESOURCE_READ_ERROR",MCP_EXTERNAL_CALL_ERROR:"MCP_EXTERNAL_CALL_ERROR",ENHANCE_PROMPT_UNKNOWN_TOKEN:"ENHANCE_PROMPT_UNKNOWN_TOKEN",ENHANCE_PROMPT_DUPLICATE_KEY_CONFLICT:"ENHANCE_PROMPT_DUPLICATE_KEY_CONFLICT",ENHANCE_PROMPT_UNKNOWN_NODE_TYPE:"ENHANCE_PROMPT_UNKNOWN_NODE_TYPE",ENHANCE_PROMPT_VALIDATION_ERROR:"ENHANCE_PROMPT_VALIDATION_ERROR",ENHANCE_PROMPT_CORE_ERROR:"ENHANCE_PROMPT_CORE_ERROR",ENHANCE_PROMPT_REQUEST_FAILED:"ENHANCE_PROMPT_REQUEST_FAILED",ENHANCE_PROMPT_INPUT_TOO_LONG:"ENHANCE_PROMPT_INPUT_TOO_LONG",CANVAS_TOOL_UNKNOWN_TOOL:"CANVAS_TOOL_UNKNOWN_TOOL",LEARN_SANITY_UNREACHABLE:"LEARN_SANITY_UNREACHABLE",LEARN_SANITY_PLAN_LIMIT_REACHED:"LEARN_SANITY_PLAN_LIMIT_REACHED",LEARN_SANITY_HTTP_ERROR:"LEARN_SANITY_HTTP_ERROR",LEARN_SANITY_MALFORMED_RESPONSE:"LEARN_SANITY_MALFORMED_RESPONSE",LEARN_SANITY_RESULT_UNPARSEABLE:"LEARN_SANITY_RESULT_UNPARSEABLE",LEARN_GUIDE_UNRENDERABLE:"LEARN_GUIDE_UNRENDERABLE",LOCAL_CACHE_WRITE_ERROR:"LOCAL_CACHE_WRITE_ERROR",LOCAL_CACHE_READ_ERROR:"LOCAL_CACHE_READ_ERROR",LOCAL_CACHE_INIT_ERROR:"LOCAL_CACHE_INIT_ERROR"},KSe=new Set([R4.SOCKET_REJECTING_WAITING_REQUEST,R4.SOCKET_MAX_RETRIES,R4.SOCKET_TIMEOUT,R4.SOCKET_CONNECTION_ERROR]);var dv=class extends Error{constructor(r,a,o,n){super(`${r} ${a}`);Vn(this,"errorCode");Vn(this,"details");o&&(this.cause=o),this.errorCode=r,this.details=n||{}}};var p9=class extends dv{constructor(r,a,o,n){super(r,a,o);Vn(this,"extraInfo");this.name="WebviewError",this.extraInfo=n}};var fv="var(--vscode-charts-green, #3FE38B)",YO="var(--vscode-errorForeground, #f47067)",Tr=K5`
|
|
2682
|
+
`;function cv({items:e}){return(0,d0.jsx)(sY,{"aria-label":"Included with your account",children:e.map(t=>(0,d0.jsxs)("li",{children:[(0,d0.jsx)(un,{size:13,strokeWidth:2.5,"aria-hidden":!0}),t]},t))})}var st=E(Gt()),jO="chat_sign_in",iY="chat_guest",lY=20,QY=11*6e4,uv="Sign-in didn't finish.";var k5={state:"idle",matchCode:null,orgs:[],failure:uv,moved:null,besideChat:!1,openLink:null};function cY(e,t){switch(e.status){case"signing_in":return{...k5,state:"waiting",matchCode:e.match_code??t.matchCode,openLink:e.openLink??t.openLink};case"claimed":return{...k5,state:"claimed",moved:e.moved,besideChat:e.besideChat};case"needs_org":return{...k5,state:"needs_org",orgs:e.orgs};case"claim_pending":return{...k5,state:"pending"};case"signed_in":return{...k5,state:"signed_in"};case"guest":return{...k5,state:"guest"};case"failed":return{...k5,state:"failed",failure:e.error?.message??uv}}}function qO({data:e,host:t,subsystem:r,intro:a}){let[o,n]=(0,Ca.useState)(k5),[s,i]=(0,Ca.useState)(!1),l=(0,Ca.useRef)(!1),Q=(0,Ca.useRef)(0),c=(0,Ca.useRef)(!0);(0,Ca.useEffect)(()=>(c.current=!0,()=>{c.current=!1}),[]);let u=p=>void t.openLink(p).catch(v=>S1(v,{tags:{subsystem:r}})),d=async(p,v=jO)=>{if(l.current)return;l.current=!0;let b=++Q.current,L=()=>c.current&&Q.current===b;i(!0);let S=p,_=k5,x=Date.now()+QY;try{for(;;){let C=kO(await t.callTool(v,S));if(!L())return;if(C.status==="signing_in"&&Date.now()>=x){n({...k5,state:"failed"});return}if(_=cY(C,_),n(_),C.status==="signing_in"&&C.openNow&&_.openLink&&u(_.openLink),C.status!=="signing_in")return;S={wait:lY}}}catch(C){S1(C,{tags:{subsystem:r}}),L()&&n({...k5,state:"failed",failure:C instanceof Error&&C.message?C.message:uv})}finally{Q.current===b&&(l.current=!1,c.current&&i(!1))}},f=()=>{Q.current++,l.current=!1,i(!1),n(k5)},g=()=>o.openLink?u(o.openLink):void t.callTool(jO,{reopen:!0}).catch(p=>S1(p,{tags:{subsystem:r}})),h=e.reason==="start"&&e.guest,y=(p,v=!0)=>(0,st.jsxs)(V6,{children:[v&&(0,st.jsx)(l9,{children:FO(e.appBrowser)}),h&&(0,st.jsx)(dn,{type:"button",$look:"outline",disabled:s,onClick:()=>void d({},iY),children:ZO}),(0,st.jsx)(dn,{type:"button",disabled:s,onClick:()=>void d({wait:0}),children:p})]}),m=a??PO(e);switch(o.state){case"idle":return(0,st.jsx)(Sa,{guest:e.reason!=="start",title:m.title,body:m.body,children:y("Sign in")});case"waiting":{let p=BO(e.appBrowser);return(0,st.jsxs)(Sa,{title:p.title,body:p.body,children:[(0,st.jsx)($O,{matchCode:o.matchCode,status:d9.status}),(0,st.jsxs)(V6,{children:[(0,st.jsx)(dn,{type:"button",$look:"plain",onClick:f,children:d9.cancel}),(0,st.jsx)(dn,{type:"button",$look:"outline",onClick:g,children:d9.reopen})]})]})}case"claimed":{let{moved:p,besideChat:v}=o,b=v?null:p?.url;return(0,st.jsxs)(Sa,{guest:!1,done:!0,title:E4.title,body:E4.body,children:[p?.name?(0,st.jsx)(zO,{name:p.name,detail:UO(p.designs)}):(0,st.jsx)(cv,{items:iv}),(0,st.jsxs)(V6,{children:[(0,st.jsx)(l9,{children:v?E4.besideChat:E4.next}),b&&(0,st.jsx)(dn,{type:"button",$look:"outline",onClick:()=>u(b),children:E4.open})]})]})}case"needs_org":return(0,st.jsx)(Sa,{title:Qv.title,body:Qv.body,children:(0,st.jsx)(GO,{children:o.orgs.map(p=>(0,st.jsx)(LO,{disabled:s,onClick:()=>void d({claimOrg:p.id}),children:p.name},p.id))})});case"pending":return(0,st.jsx)(Sa,{guest:!1,title:lv.title,body:lv.body,children:y("Try again",!1)});case"guest":return(0,st.jsx)(Sa,{done:!0,title:f9.title,body:f9.body,children:(0,st.jsxs)(V6,{children:[(0,st.jsx)(l9,{children:f9.next}),(0,st.jsx)(dn,{type:"button",$look:"outline",disabled:s,onClick:()=>void d({wait:0}),children:"Sign in"})]})});case"signed_in":return(0,st.jsx)(Sa,{guest:!1,done:!0,title:sv.title,body:sv.body,children:(0,st.jsx)(cv,{items:iv})});case"failed":return(0,st.jsxs)(Sa,{title:m.title,body:m.body,children:[(0,st.jsx)(_O,{children:o.failure}),y("Sign in")]})}}function uY(e){let t=e.structuredContent;return e.isError!==!0&&u0(t)&&Array.isArray(t.briefs)?{run_id:typeof t.run_id=="string"?t.run_id:"",thread_name:typeof t.thread_name=="string"?t.thread_name:null,briefs:t.briefs.filter(r=>typeof r=="string"&&r.length>0)}:EO(e)||"Kombai sent no taste brief."}function WO(e,t){return RO({name:"kombai-design-taste",version:e,subsystem:"mcp-design-taste"},{onTheme:t.onTheme,onFailure:t.onFailure,onToolResult:r=>{let a=DO(r);if(a){t.onSignIn(a);return}let o=uY(r);typeof o=="string"?t.onFailure(o):t.onData(o)}})}var bk=E(H());var fn={primary:16};var dY={LAUNCH_FAILED:"launch_failed",PAGE_LOAD_FAILED:"page_load_failed",DETECTION_FAILED:"detection_failed",OPEN_PAGE_IN_CONTEXT_FAILED:"open_page_in_context_failed",EXTENSION_LOAD_FAILED:"extension_load_failed",CONTEXT_CREATION_FAILED:"context_creation_failed",PROXY_SETUP_FAILED:"proxy_setup_failed",NAMESPACE_INJECTION_FAILED:"namespace_injection_failed",PAGE_NAVIGATION_FAILED:"page_navigation_failed",CONNECTION_FAILED:"connection_failed",APP_INITIALIZATION_FAILED:"app_initialization_failed",API_INJECTION_FAILED:"api_injection_failed",API_VALIDATION_FAILED:"api_validation_failed",PAGE_META_INJECTION_FAILED:"page_meta_injection_failed",IFRAME_LOAD_FAILED:"iframe_load_failed",IFRAME_DISPOSAL_FAILED:"iframe_disposal_failed",IFRAME_REMOVAL_FAILED:"iframe_removal_failed",HEALTH_CHECK_FAILED:"health_check_failed",SCRIPT_EXECUTION_FAILED:"script_execution_failed",SCRIPT_TIMEOUT:"script_timeout",FILE_READ_FAILED:"file_read_failed",DIRECTORY_FOUND_KOMBAI_TEMP_DIR:"directory_found_kombai_temp_dir",DIRECTORY_DELETE_FAILED:"directory_delete_failed",IMAGE_LIMIT_EXCEEDED:"image_limit_exceeded",TEXT_LENGTH_LIMIT_EXCEEDED:"text_length_limit_exceeded",BINARY_FILE_FOUND_IN_TEMP_DIR:"binary_file_found_in_temp_dir",PAGE_METADATA_FETCH_ERROR:"page_metadata_fetch_error",VALIDATION_FAILED:"validation_failed",DEBUGGING_PORT_READ_FAILED:"debugging_port_read_failed",DEBUGGING_PORT_PARSE_FAILED:"debugging_port_parse_failed",RAW_BROWSER_NOT_FOUND:"raw_browser_not_found",PROXY_NOT_INSTALLED:"proxy_not_installed",USER_DATA_DIR_LOCKED:"user_data_dir_locked",BROWSER_NOT_LAUNCHED:"browser_not_launched",WINDOW_ID_FETCH_FAILED:"window_id_fetch_failed",PAGE_ID_FETCH_FAILED:"page_id_fetch_failed",INVALID_PAGE_URL:"invalid_page_url",RESOURCE_FILE_URL_NOT_SUPPORTED:"resource_file_url_not_supported",RXJS_INJECTION_FAILED:"rxjs_injection_failed",BROWSER_AUDIT_FAILED:"browser_audit_failed",EXTENSION_APP_NOT_INITIALIZED:"extension_app_not_initialized",PAGE_NOT_FOUND:"page_not_found",PAGE_INITIALIZATION_FAILED:"page_initialization_failed",PAGE_REFRESH_SETUP_FAILED:"page_refresh_setup_failed",NEW_PAGE_SETUP_FAILED:"new_page_setup_failed",PAGE_DISPOSE_FAILED:"page_dispose_failed",SERVICES_RESET_FAILED:"services_reset_failed"},fY={SYNC_FAILED:"sync_failed"},pY={PAGE_CLOSED:"page_closed",PAGE_DETACHED:"page_detached",NAVIGATION_INTERRUPTED:"navigation_interrupted",DOM_NOT_AVAILABLE:"dom_not_available"},mY={NOT_INITIALIZED:"not_initialized",TIMEOUT:"timeout",OPERATION_FAILED:"operation_failed",INJECTION_FAILED:"injection_failed",CHANNEL_NOT_READY:"channel_not_ready",VALIDATION_FAILED:"validation_failed",FIBER_NODE_NOT_FOUND:"fiber_node_not_found",RESOURCE_NOT_FOUND:"resource_not_found",NODE_ID_NOT_FOUND_FOR_SELECTOR:"node_id_not_found_for_selector",CDP_SESSION_FAILED_TO_CREATE:"cdp_session_failed_to_create",CDP_SESSION_ERROR:"cdp_session_error",PAGE_API_NOT_AVAILABLE:"page_api_not_available"},gY={PAGE_OPEN_FAILED:"page_open_failed",PAGE_REOPEN_FAILED:"page_reopen_failed",PAGE_CLOSE_FAILED:"page_close_failed",PAGE_REFRESH_FAILED:"page_refresh_failed",PAGE_FOCUS_FAILED:"page_focus_failed",PAGE_NOT_FOUND:"page_not_found",APP_NOT_FOUND:"app_not_found",BROWSER_CLOSE_FAILED:"browser_close_failed",INITIALIZATION_FAILED:"initialization_failed",SUBSCRIPTION_SETUP_FAILED:"subscription_setup_failed",SUBSCRIPTION_CLEANUP_FAILED:"subscription_cleanup_failed",DOM_SERVICES_NOT_INITIALIZED:"dom_services_not_initialized",SNAPSHOT_CACHE_UPDATE_FAILED:"snapshot_cache_update_failed",SNAPSHOT_CACHE_PURGE_FAILED:"snapshot_cache_purge_failed",SNAPSHOT_CACHE_NOT_FOUND:"snapshot_cache_not_found",SNAPSHOT_NOT_FOUND_IN_CACHE:"snapshot_not_found_in_cache",SCREENSHOT_READ_FAILED:"screenshot_read_failed",SCREENSHOT_DIRECTORY_EMPTY_FAILED:"screenshot_directory_empty_failed",DATA_PROCESSING_FAILED:"data_processing_failed",CHAT_INTEGRATION_FAILED:"chat_integration_failed",CONTEXT_STATE_SYNC_FAILED:"context_state_sync_failed",SEND_TO_CHAT_FAILED:"send_to_chat_failed",CHANNEL_COMMUNICATION_INITIALIZATION_FAILED:"channel_communication_initialization_failed"},hY={BROWSER_OPEN_ERROR:"BROWSER_OPEN_ERROR",BROWSER_CLOSE_ERROR:"BROWSER_CLOSE_ERROR",BROWSER_EXECUTE_ERROR:"BROWSER_EXECUTE_ERROR",BROWSER_OPEN_FAILED_REASON_NOT_PROVIDED:"BROWSER_OPEN_FAILED_REASON_NOT_PROVIDED",BROWSER_NOT_FOUND:"BROWSER_NOT_FOUND",INVALID_BROWSER_TYPE:"INVALID_BROWSER_TYPE",INVALID_URL:"INVALID_URL",INVALID_CODE:"INVALID_CODE",INVALID_DESCRIPTION:"INVALID_DESCRIPTION",INVALID_PAGE_ID:"INVALID_PAGE_ID",INVALID_ACTION_TYPE:"INVALID_ACTION_TYPE"},vY={AGENT_PAGE_OPEN_FAILED:"agent_page_open_failed",AGENT_PAGE_CLOSE_FAILED:"agent_page_close_failed",AGENT_BANNER_INJECTION_FAILED:"agent_banner_injection_failed",AGENT_BROWSER_AUDIT_FAILED:"agent_browser_audit_failed"},yY={NOT_INITIALIZED:"session_not_initialized",INITIALIZATION_FAILED:"session_initialization_failed",HANDLER_NOT_REGISTERED:"session_handler_not_registered",SNAPSHOT_FAILED:"session_snapshot_failed"},bY={SOCKET_SERVER_START_FAILED:"socket_server_start_failed",SOCKET_SERVER_STOP_FAILED:"socket_server_stop_failed",SOCKET_SERVER_NOT_INITIALIZED:"socket_server_not_initialized",SOCKET_CHANNEL_EMIT_FAILED:"socket_channel_emit_failed",SOCKET_CHANNEL_NOT_FOUND:"socket_channel_not_found",SOCKET_CLIENT_CONNECTION_FAILED:"socket_client_connection_failed",SOCKET_CLIENT_UPDATE_REJECTED:"socket_client_update_rejected"},_Y={SERVER_START_FAILED:"server_start_failed",SERVER_STOP_FAILED:"server_stop_failed",SERVER_RESTART_FAILED:"server_restart_failed",SERVER_DISPOSAL_FAILED:"server_disposal_failed",PORT_ALLOCATION_FAILED:"port_allocation_failed",PORT_NOT_AVAILABLE:"port_not_available",DIRECTORY_CREATION_FAILED:"directory_creation_failed",DIRECTORY_VALIDATION_FAILED:"directory_validation_failed",FILE_READ_FAILED:"file_read_failed",FILE_SERVE_FAILED:"file_serve_failed",VIRTUAL_FILE_GENERATION_FAILED:"virtual_file_generation_failed",VIRTUAL_FILE_REGISTRATION_FAILED:"virtual_file_registration_failed",REQUEST_HANDLER_FAILED:"request_handler_failed",INVALID_REQUEST_PATH:"invalid_request_path",INVALID_STATE_TRANSITION:"invalid_state_transition",SERVER_ALREADY_DISPOSED:"server_already_disposed"},KO={...fY,...pY,...mY,...gY,...vY,...hY,...dY,..._Y,...bY,...yY};var R4={UNAUTHORIZED:"UNAUTHORIZED",FORBIDDEN_WAF:"FORBIDDEN_WAF",FORBIDDEN_CORS:"FORBIDDEN_CORS",AUTH_FAILED:"AUTH_FAILED",INTERNAL_SERVER_ERROR:"INTERNAL_SERVER_ERROR",DESIGN_LIBRARY_FETCH_ERROR:"DESIGN_LIBRARY_FETCH_ERROR",UNHANDLED_ERROR:"UNHANDLED_ERROR",BAD_REQUEST:"BAD_REQUEST",UI_NETWORK_ERROR:"UI_NETWORK_ERROR",THREAD_NOT_FOUND:"THREAD_NOT_FOUND",LOGOUT_CLEANUP_VALIDATION_ERROR:"LOGOUT_CLEANUP_VALIDATION_ERROR",LOGOUT_ERROR:"LOGOUT_ERROR",CODE_VERIFICATION_ERROR:"CODE_VERIFICATION_ERROR",LOGIN_CALLBACK_ERROR:"LOGIN_CALLBACK_ERROR",OAUTH_CALLBACK_ERROR:"OAUTH_CALLBACK_ERROR",SECURE_STORAGE_UNAVAILABLE:"SECURE_STORAGE_UNAVAILABLE",USER_RULES_VALIDATION_ERROR:"USER_RULES_VALIDATION_ERROR",CODEGEN_VALIDATION_ERROR:"CODEGEN_VALIDATION_ERROR",NEW_USER_RULES_VALIDATION_ERROR:"NEW_USER_RULES_VALIDATION_ERROR",STREAMING_VALIDATION_ERROR:"STREAMING_VALIDATION_ERROR",UNSUPPORTED_WS_VALIDATION_ERROR:"UNSUPPORTED_WS_VALIDATION_ERROR",PREVIEW_ERROR_VALIDATION_ERROR:"PREVIEW_ERROR_VALIDATION_ERROR",RESOLVE_INPUT_VALIDATION_ERROR:"RESOLVE_INPUT_VALIDATION_ERROR",FIX_CODE_VALIDATION_ERROR:"FIX_CODE_VALIDATION_ERROR",SKIP_VALIDATION_ERROR:"SKIP_VALIDATION_ERROR",WORKING_SET_VALIDATION_ERROR:"WORKING_SET_VALIDATION_ERROR",INVALID_MESSAGE_VALIDATION_ERROR:"INVALID_MESSAGE_VALIDATION_ERROR",CODEGEN_ALREADY_IN_PROGRESS_ERROR:"CODEGEN_ALREADY_IN_PROGRESS_ERROR",INVALID_FIGMA_VALIDATION_ERROR:"INVALID_FIGMA_VALIDATION_ERROR",INVALID_SOCKET_RESPONSE_ERROR:"INVALID_SOCKET_RESPONSE_ERROR",MISSING_EDITOR_CONTENT_VALIDATION_ERROR:"MISSING_EDITOR_CONTENT_VALIDATION_ERROR",FIGMA_CONNECT_MESSAGE_VALIDATION_ERROR:"FIGMA_CONNECT_MESSAGE_VALIDATION_ERROR",UI_ERROR:"UI_ERROR",LOADER_LEFT_OPEN:"LOADER_LEFT_OPEN",WEBVIEW_REQUEST_TIMEOUT:"WEBVIEW_REQUEST_TIMEOUT",WEBVIEW_REQUEST_ABORTED:"WEBVIEW_REQUEST_ABORTED",CORE_UNAVAILABLE:"CORE_UNAVAILABLE",EDITOR_SURFACE_MISSING:"EDITOR_SURFACE_MISSING",PROJECT_REQUIRED:"PROJECT_REQUIRED",CODEX_FAILED:"CODEX_FAILED",CODEX_CONTINUABLE:"CODEX_CONTINUABLE",CLAUDE_CODE_FAILED:"CLAUDE_CODE_FAILED",CLAUDE_CODE_CONTINUABLE:"CLAUDE_CODE_CONTINUABLE",CODEX_PLAN_LIMIT:"CODEX_PLAN_LIMIT",CLAUDE_CODE_PLAN_LIMIT:"CLAUDE_CODE_PLAN_LIMIT",CODEX_AUTH_FAILED:"CODEX_AUTH_FAILED",CODEX_NOT_INSTALLED:"CODEX_NOT_INSTALLED",CLAUDE_CODE_NOT_INSTALLED:"CLAUDE_CODE_NOT_INSTALLED",CODEX_SESSION_BUSY:"CODEX_SESSION_BUSY",CLAUDE_CODE_AT_CAPACITY:"CLAUDE_CODE_AT_CAPACITY",AGENT_WORKSPACE_MISSING:"AGENT_WORKSPACE_MISSING",THREAD_SESSION_MISMATCH:"THREAD_SESSION_MISMATCH",SEND_DISPATCH_FAILED:"SEND_DISPATCH_FAILED",SOCKET_TIMEOUT:"SOCKET_TIMEOUT",SOCKET_CONNECTION_ERROR:"SOCKET_CONNECTION_ERROR",GLOBAL_STORE_ERROR:"GLOBAL_STORE_ERROR",THREAD_LEASE_LOST:"THREAD_LEASE_LOST",SOCKET_SEND_ERROR:"SOCKET_SEND_ERROR",SOCKET_SEND_ERROR_CALLBACK:"SOCKET_SEND_ERROR_CALLBACK2",UNHANDLED_SOCKET_ERROR:"UNHANDLED_SOCKET_ERROR",SOCKET_REJECTING_WAITING_REQUEST:"SOCKET_REJECTING_WAITING_REQUEST",SOCKET_MAX_RETRIES:"SOCKET_MAX_RETRIES",SOCKET_INITIALIZATION_ERROR:"SOCKET_INITIALIZATION_ERROR",SOCKET_SEND_BLOCKING_TOOL_REPLY_ERROR:"SOCKET_SEND_BLOCKING_TOOL_REPLY_ERROR",SOCKET_FRAME_DROPPED:"SOCKET_FRAME_DROPPED",FORCE_UPDATE_ERROR:"FORCE_UPDATE_ERROR",FIGMA_API_ERROR:"FIGMA_API_ERROR",FIGMA_CONNECT_ERROR:"FIGMA_CONNECT_ERROR",FIGMA_TOKEN_NOT_FOUND:"FIGMA_TOKEN_NOT_FOUND",REPLACE_FILE_CONTENT_ERROR:"REPLACE_FILE_CONTENT_ERROR",SETUP_DIFF_DIRECTORY_ERROR:"SETUP_DIFF_DIRECTORY_ERROR",CLEAN_UP_DIFF_ERROR:"CLEAN_UP_DIFF_ERROR",WRITE_DIFF_FILE_ERROR:"WRITE_DIFF_FILE_ERROR",GET_ENCLOSING_SYMBOL_ERROR:"GET_ENCLOSING_SYMBOL_ERROR",GET_REFERENCES_ERROR:"GET_REFERENCES_ERROR",WORKSPACE_NOT_FOUND:"WORKSPACE_NOT_FOUND",WALK_DIR_ERROR:"WALK_DIR_ERROR",FILE_NOT_FOUND:"FILE_NOT_FOUND",TS_CONFIG_PARSING_FAILED:"TS_CONFIG_PARSING_FAILED",FILE_NOT_SUPPORTED_FOR_REFERENCES:"FILE_NOT_SUPPORTED_FOR_REFERENCES",WRITE_FILE_ERROR:"WRITE_FILE_ERROR",FILE_REFERENCE_ERROR:"FILE_REFERENCE_ERROR",READ_RANGE_ERROR:"READ_RANGE_ERROR",S3_FETCH_ERROR:"S3_FETCH_ERROR",S3_PUT_ERROR:"S3_PUT_ERROR",IMAGE_LOST:"IMAGE_LOST",IMAGE_STORE_WRITE_ERROR:"IMAGE_STORE_WRITE_ERROR",IMAGE_STORE_READ_ERROR:"IMAGE_STORE_READ_ERROR",IMAGE_STORE_FALLBACK_ENGAGED:"IMAGE_STORE_FALLBACK_ENGAGED",FIGMA_SNAPSHOT_UNAVAILABLE:"FIGMA_SNAPSHOT_UNAVAILABLE",FIGMA_SNAPSHOT_TOO_LARGE:"FIGMA_SNAPSHOT_TOO_LARGE",FIGMA_SNAPSHOT_NOT_READY:"FIGMA_SNAPSHOT_NOT_READY",DATA_URL_TREATED_AS_FILE:"DATA_URL_TREATED_AS_FILE",GET_FILE_CONTENTS_ERROR:"GET_FILE_CONTENTS_ERROR",ATTACHMENT_PROBE_ERROR:"ATTACHMENT_PROBE_ERROR",IS_DIRECTORY_ERROR:"IS_DIRECTORY_ERROR",GET_FILES_ERROR:"GET_FILES_ERROR",NOT_RELATIVE_TO_GITIGNORE:"NOT_RELATIVE_TO_GITIGNORE",KOMBAI_FOLDER_SYNC_ERROR:"KOMBAI_FOLDER_SYNC_ERROR",PREVIEW_FOLDER_NOT_FOUND:"PREVIEW_FOLDER_NOT_FOUND",FILE_ICON_ERROR:"FILE_ICON_ERROR",CDN_FETCH_ERROR:"CDN_FETCH_ERROR",BINARY_FETCH_ERROR:"BINARY_FETCH_ERROR",BINRARY_NOT_FOUND_AT_EXPECTED_PATH:"BINRARY_NOT_FOUND_AT_EXPECTED_PATH",PAYLOAD_PARSING_ERROR:"PAYLOAD_PARSING_ERROR",DOM_ELEMENT_NOT_FOUND:"DOM_ELEMENT_NOT_FOUND",INVALID_CURSOR_POSITION:"INVALID_CURSOR_POSITION",INDEXING_ERROR:"INDEXING_ERROR",TECH_STACK_READ_ERROR:"TECH_STACK_READ_ERROR",TECH_STACK_WRITE_ERROR:"TECH_STACK_WRITE_ERROR",TECH_STACK_INDEX_METADATA_READ_ERROR:"TECH_STACK_INDEX_METADATA_READ_ERROR",TECH_STACK_INDEX_METADATA_WRITE_ERROR:"TECH_STACK_INDEX_METADATA_WRITE_ERROR",RESOLVE_INPUT_ERROR:"RESOLVE_INPUT_ERROR",GET_SELECTED_CODE_PROMPT_CONTEXT_ERROR:"GET_SELECTED_CODE_PROMPT_CONTEXT_ERROR",SYSTEM_METADATA_FETCH_ERROR:"SYSTEM_METADATA_FETCH_ERROR",USER_FIGMA_FORBIDDEN_FIGMA:"USER_FIGMA_FORBIDDEN_FIGMA",USER_FIGMA_NOT_FRAME_LIKE:"USER_FIGMA_NOT_FRAME_LIKE",WEBVIEW_DIDNT_RESPOND:"WEBVIEW_DIDNT_RESPOND",INVALID_VIEW_NAME:"INVALID_VIEW_NAME",INVALID_ARGUMENT:"INVALID_ARGUMENT",HISTORY_LOAD_ERROR:"HISTORY_LOAD_ERROR",HISTORY_LIST_ERROR:"HISTORY_LIST_ERROR",HISTORY_DELETE_ERROR:"HISTORY_DELETE_ERROR",HISTORY_RENAME_ERROR:"HISTORY_RENAME_ERROR",HISTORY_SHARE_ERROR:"HISTORY_SHARE_ERROR",HISTORY_RESUME_ERROR:"HISTORY_RESUME_ERROR",HISTORY_TRUNCATE_ERROR:"HISTORY_TRUNCATE_ERROR",HISTORY_SAVE_FILES_SAVED_CHECKPOINT_ERROR:"HISTORY_SAVE_FILES_SAVED_CHECKPOINT_ERROR",HISTORY_GET_CHECKPOINT_FILES_ERROR:"HISTORY_GET_CHECKPOINT_FILES_ERROR",HISTORY_GET_USAGE_LOGS_ERROR:"HISTORY_GET_USAGE_LOGS_ERROR",HISTORY_REPORT_THREAD_ACTION_ERROR:"HISTORY_REPORT_THREAD_ACTION_ERROR",THREAD_SYNC_DISABLED:"THREAD_SYNC_DISABLED",TOKEN_USAGE_INFO_ERROR:"TOKEN_USAGE_INFO_ERROR",EXTENSION_MESSAGE_HANDLER_ERROR:"EXTENSION_MESSAGE_HANDLER_ERROR",EXTENSION_SETTING_USER_INSTRUCTIONS_ERROR:"EXTENSION_SETTING_USER_INSTRUCTIONS_ERROR",EXTENSION_GETTING_USER_INSTRUCTIONS_ERROR:"EXTENSION_GETTING_USER_INSTRUCTIONS_ERROR",CREATE_DIRECTORY_ERROR:"CREATE_DIRECTORY_ERROR",DELETE_FILE_ERROR:"DELETE_FILE_ERROR",INVALID_WEBVIEW_TYPE:"INVALID_WEBVIEW_TYPE",GLOBAL_STATE_CONTEXT_MANAGER_NOT_INITIALIZED:"GLOBAL_STATE_CONTEXT_MANAGER_NOT_INITIALIZED",FAILED_TO_RUN_TOOL:"FAILED_TO_RUN_TOOL",AGENT_NOT_FOUND:"AGENT_NOT_FOUND",AGENT_FAILED:"AGENT_FAILED",PARENT_NOT_FOUND:"PARENT_NOT_FOUND",INVALID_AGENT_TYPE:"INVALID_AGENT_TYPE",INVALID_AGENT_STATE:"INVALID_AGENT_STATE",INVALID_AGENT_OPERATION:"INVALID_AGENT_OPERATION",NO_TOOLS_TO_RUN:"NO_TOOLS_TO_RUN",INVALID_TOOL_INPUT:"INVALID_TOOL_INPUT",TERMINAL_EXECUTION_ERROR:"TERMINAL_EXECUTION_ERROR",POWER_SHELL_VERSION_ERROR:"POWER_SHELL_VERSION_ERROR",FETCH_IMAGE_CONTENT_ERROR:"FETCH_IMAGE_CONTENT_ERROR",IMAGE_FILE_OPEN_ERROR:"IMAGE_FILE_OPEN_ERROR",MESSAGE_SENT_POSTHOG_ERROR:"MESSAGE_SENT_POSTHOG_ERROR",USER_ID_NOT_FOUND_FOR_SETUP_SCRIPT:"USER_ID_NOT_FOUND_FOR_SETUP_SCRIPT",USER_RULES_INITIALIZATION_ERROR:"USER_RULES_INITIALIZATION_ERROR",USER_RULES_GET_FOR_CHAT_ERROR:"USER_RULES_GET_FOR_CHAT_ERROR",ORG_RULES_LIST_ERROR:"ORG_RULES_LIST_ERROR",ORG_RULES_GET_ERROR:"ORG_RULES_GET_ERROR",ORG_RULES_PUBLISH_ERROR:"ORG_RULES_PUBLISH_ERROR",ORG_RULES_OVERRIDE_ERROR:"ORG_RULES_OVERRIDE_ERROR",ORG_RULES_DELETE_ERROR:"ORG_RULES_DELETE_ERROR",ORG_RULES_USE_ERROR:"ORG_RULES_USE_ERROR",ORG_COMMANDS_LIST_ERROR:"ORG_COMMANDS_LIST_ERROR",ORG_COMMANDS_GET_ERROR:"ORG_COMMANDS_GET_ERROR",ORG_COMMANDS_PUBLISH_ERROR:"ORG_COMMANDS_PUBLISH_ERROR",ORG_COMMANDS_OVERRIDE_ERROR:"ORG_COMMANDS_OVERRIDE_ERROR",ORG_COMMANDS_DELETE_ERROR:"ORG_COMMANDS_DELETE_ERROR",ORG_COMMANDS_USE_ERROR:"ORG_COMMANDS_USE_ERROR",THREAD_FILE_HISTORY_MANAGER_ERROR:"THREAD_FILE_HISTORY_MANAGER_ERROR",THREAD_FILE_HISTORY_CONTENT_NOT_FOUND:"THREAD_FILE_HISTORY_CONTENT_NOT_FOUND",FILE_NOT_FOUND_IN_WORKSPACE:"FILE_NOT_FOUND_IN_WORKSPACE",THREAD_FILE_HISTORY_MANAGER_NOT_INITIALIZED:"THREAD_FILE_HISTORY_MANAGER_NOT_INITIALIZED",INVALID_OPERATION:"INVALID_OPERATION",INVALID_ACTION_ON_FILE_HISTORY:"INVALID_ACTION_ON_FILE_HISTORY",FILE_WATCHER_SETUP_ERROR:"FILE_WATCHER_SETUP_ERROR",FILE_WATCHER_CREATE_ERROR:"FILE_WATCHER_CREATE_ERROR",FILE_WATCHER_CLEANUP_ERROR:"FILE_WATCHER_CLEANUP_ERROR",FILE_WATCHER_REFRESH_ERROR:"FILE_WATCHER_REFRESH_ERROR",FILE_HISTORY_ADD_OPERATION_ERROR:"FILE_HISTORY_ADD_OPERATION_ERROR",FILE_HISTORY_DELETE_OPERATION_ERROR:"FILE_HISTORY_DELETE_OPERATION_ERROR",FILE_HISTORY_RESTORE_ERROR:"FILE_HISTORY_RESTORE_ERROR",FILE_HISTORY_ACCEPT_ERROR:"FILE_HISTORY_ACCEPT_ERROR",FILE_HISTORY_REJECT_ERROR:"FILE_HISTORY_REJECT_ERROR",FILE_HISTORY_OPEN_ERROR:"FILE_HISTORY_OPEN_ERROR",FILE_CHANGE_HANDLER_ERROR:"FILE_CHANGE_HANDLER_ERROR",FILE_RESTORATION_ERROR:"FILE_RESTORATION_ERROR",WORKSPACE_ROOT_NOT_FOUND:"WORKSPACE_ROOT_NOT_FOUND",FILE_HISTORY_SAVE_ERROR:"FILE_HISTORY_SAVE_ERROR",FILE_HISTORY_INITIALIZATION_ERROR:"FILE_HISTORY_INITIALIZATION_ERROR",NO_OUTGOING_MESSAGE_TIMESTAMP_FOUND:"NO_OUTGOING_MESSAGE_TIMESTAMP_FOUND",USER_DRAFT_CLEAR_ERROR:"USER_DRAFT_CLEAR_ERROR",USER_DRAFT_SAVE_ERROR:"USER_DRAFT_SAVE_ERROR",USER_DRAFT_GET_ERROR:"USER_DRAFT_GET_ERROR",FIRST_TURN_MESSAGE_CLEAR_ERROR:"FIRST_TURN_MESSAGE_CLEAR_ERROR",MENTION_PICKER_HOST_ERROR:"MENTION_PICKER_HOST_ERROR",TOOL_USE_FILE_OPEN_ERROR:"TOOL_USE_FILE_OPEN_ERROR",TOOL_USE_FILE_HISTORY_ADD_ERROR:"TOOL_USE_FILE_HISTORY_ADD_ERROR",TOOL_USE_FILE_HISTORY_ROLLBACK_ERROR:"TOOL_USE_FILE_HISTORY_ROLLBACK_ERROR",TOOL_USE_EXECUTION_ERROR:"TOOL_USE_EXECUTION_ERROR",TOOL_USE_PROCESSING_ERROR:"TOOL_USE_PROCESSING_ERROR",TOOL_USE_INVALID_SOURCE:"TOOL_USE_INVALID_SOURCE",TOOL_USE_SPILLOVER_UNRESOLVED:"TOOL_USE_SPILLOVER_UNRESOLVED",AGENT_RESULT_ENVELOPE_UNRESOLVED:"AGENT_RESULT_ENVELOPE_UNRESOLVED",NON_BLOCKING_TOOL_EXECUTED:"NON_BLOCKING_TOOL_EXECUTED",BLOCKING_TOOL_TIMEOUT:"BLOCKING_TOOL_TIMEOUT",BLOCKING_TOOL_STOPPED:"BLOCKING_TOOL_STOPPED",DISPLAY_FORM_CLOSED:"DISPLAY_FORM_CLOSED",FILESET_FETCH_HISTORY_ERROR:"FILESET_FETCH_HISTORY_ERROR",FILESET_KEEP_HISTORY_ERROR:"FILESET_KEEP_HISTORY_ERROR",FILESET_REJECT_HISTORY_ERROR:"FILESET_REJECT_HISTORY_ERROR",FILESET_FILE_OPEN_ERROR:"FILESET_FILE_OPEN_ERROR",FILESET_GET_FILE_HISTORY_ERROR:"FILESET_GET_FILE_HISTORY_ERROR",FILESET_ACCEPT_FILE_ERROR:"FILESET_ACCEPT_FILE_ERROR",FILESET_REJECT_FILE_ERROR:"FILESET_REJECT_FILE_ERROR",TOOL_EXECUTION_ERROR:"TOOL_EXECUTION_ERROR",...KO,GET_FEATURE_FLAG_ERROR:"GET_FEATURE_FLAG_ERROR",GET_ACTIVATION_CARD_ERROR:"GET_ACTIVATION_CARD_ERROR",KOMBAI_SUGGESTED_SETTINGS_FETCH_ERROR:"KOMBAI_SUGGESTED_SETTINGS_FETCH_ERROR",AI_SUGGESTED_SETTINGS_FETCH_ERROR:"AI_SUGGESTED_SETTINGS_FETCH_ERROR",BROWSER_STATE_VALIDATION_ERROR:"BROWSER_STATE_VALIDATION_ERROR",BROWSER_SERVER_NOT_FOUND:"BROWSER_SERVER_NOT_FOUND",FETCH_RECENTLY_ACCESSED_FILES_ERROR:"FETCH_RECENTLY_ACCESSED_FILES_ERROR",FETCH_LATEST_SESSION_THREAD_ID_ERROR:"FETCH_LATEST_SESSION_THREAD_ID_ERROR",ATTACHMENT_ERROR:"ATTACHMENT_ERROR",FAILED_TO_GET_SLASH_COMMAND_PROMPTS_DIRECTORY:"FAILED_TO_GET_SLASH_COMMAND_PROMPTS_DIRECTORY",SLASH_COMMAND_NOT_FOUND:"SLASH_COMMAND_NOT_FOUND",PARSE_LEGACY_COMMAND_DIRS_ERROR:"PARSE_LEGACY_COMMAND_DIRS_ERROR",OPEN_FILE_AFTER_CREATE_ERROR:"OPEN_FILE_AFTER_CREATE_ERROR",SETTINGS_ITEMS_LIST_ERROR:"SETTINGS_ITEMS_LIST_ERROR",SETTINGS_ITEMS_REQUEST_ERROR:"SETTINGS_ITEMS_REQUEST_ERROR",BROWSER_CLEAR_CACHE_DATA_FOR_LLM_ERROR:"BROWSER_CLEAR_CACHE_DATA_FOR_LLM_ERROR",FILE_PREVIEW_ERROR:"FILE_PREVIEW_ERROR",TERMINAL_TOOL_EXECUTION_ERROR:"TERMINAL_TOOL_EXECUTION_ERROR",BROWSER_DATA_UPLOAD_ERROR:"BROWSER_DATA_UPLOAD_ERROR",VSCODE_URI_PARSE_ERROR:"VSCODE_URI_PARSE_ERROR",MERMAID_RENDER_ERROR:"MERMAID_RENDER_ERROR",REFERRAL_UNKNOWN_ERROR:"REFERRAL_UNKNOWN_ERROR",REFERRAL_RESPONSE_VALIDATION_ERROR:"REFERRAL_RESPONSE_VALIDATION_ERROR",REFERRAL_GENERATE_CODE_ERROR:"REFERRAL_GENERATE_CODE_ERROR",REFERRAL_GENERATE_CODE_IPC_ERROR:"REFERRAL_GENERATE_CODE_IPC_ERROR",REFERRAL_UNEXPECTED_NOT_PAID_USER:"REFERRAL_UNEXPECTED_NOT_PAID_USER",REFERRAL_UNEXPECTED_TEAM_PLAN_USER:"REFERRAL_UNEXPECTED_TEAM_PLAN_USER",REFERRAL_REFEREE_STATUS_UNEXPECTED:"REFERRAL_REFEREE_STATUS_UNEXPECTED",REFERRAL_REFEREE_STATUS_FETCH_FAILED:"REFERRAL_REFEREE_STATUS_FETCH_FAILED",PAYMENT_LINK_RESPONSE_VALIDATION_ERROR:"PAYMENT_LINK_RESPONSE_VALIDATION_ERROR",SUBSCRIPTION_SCHEDULE_DOWNGRADE_ERROR:"SUBSCRIPTION_SCHEDULE_DOWNGRADE_ERROR",SUBSCRIPTION_CANCEL_SCHEDULED_DOWNGRADE_ERROR:"SUBSCRIPTION_CANCEL_SCHEDULED_DOWNGRADE_ERROR",SUBSCRIPTION_CANCEL_AT_PERIOD_END_ERROR:"SUBSCRIPTION_CANCEL_AT_PERIOD_END_ERROR",PLAN_FEATURE_MARKUP_UNPARSED:"PLAN_FEATURE_MARKUP_UNPARSED",PAYMENT_STRIPE_JS_LOAD_FAILED:"PAYMENT_STRIPE_JS_LOAD_FAILED",PAYMENT_CHALLENGE_THREW:"PAYMENT_CHALLENGE_THREW",PAYMENT_CHALLENGE_INCOMPLETE:"PAYMENT_CHALLENGE_INCOMPLETE",PAYMENT_CHALLENGE_ORPHANED_SUCCESS:"PAYMENT_CHALLENGE_ORPHANED_SUCCESS",PAYMENT_REQUEST_THREW:"PAYMENT_REQUEST_THREW",PAYMENT_ATTEMPT_ORPHANED:"PAYMENT_ATTEMPT_ORPHANED",PAYMENT_OUTCOME_UNHANDLED:"PAYMENT_OUTCOME_UNHANDLED",PAYMENT_CART_CHANGED_WHILE_CHARGING:"PAYMENT_CART_CHANGED_WHILE_CHARGING",PAYMENT_SETTLEMENT_UNCONFIRMED:"PAYMENT_SETTLEMENT_UNCONFIRMED",PAYMENT_SETTLEMENT_BACKSTOP_FIRED:"PAYMENT_SETTLEMENT_BACKSTOP_FIRED",PAYMENT_EMPTY_CART_SUBMIT:"PAYMENT_EMPTY_CART_SUBMIT",PAYMENT_NO_PLAN_SELECTED:"PAYMENT_NO_PLAN_SELECTED",PAYMENT_SEED_PLAN_UNRESOLVED:"PAYMENT_SEED_PLAN_UNRESOLVED",PAYMENT_CONFIRM_STEP_WITHOUT_CARDS:"PAYMENT_CONFIRM_STEP_WITHOUT_CARDS",PAYMENT_CONFIRM_CARD_WITHOUT_ORDER:"PAYMENT_CONFIRM_CARD_WITHOUT_ORDER",PAYMENT_ENVELOPE_OUTCOME_UNRECOGNISED:"PAYMENT_ENVELOPE_OUTCOME_UNRECOGNISED",PAYMENT_ATTEMPT_FAILED:"PAYMENT_ATTEMPT_FAILED",EXCALIDRAW_PNG_CREATION_ERROR:"EXCALIDRAW_PNG_CREATION_ERROR",SKILLS_SCAN_ERROR:"SKILLS_SCAN_ERROR",MCP_SERVER_CONFIG_ERROR:"MCP_SERVER_CONFIG_ERROR",MCP_WRITE_TOOLS_TO_DISK_ERROR:"MCP_WRITE_TOOLS_TO_DISK_ERROR",MCP_LIST_TOOLS_ERROR:"MCP_LIST_TOOLS_ERROR",MCP_LIST_RESOURCES_ERROR:"MCP_LIST_RESOURCES_ERROR",MCP_CLEAR_JSON_FILES_ERROR:"MCP_CLEAR_JSON_FILES_ERROR",MCP_DELETE_SERVER_CONFIG_FILE_ERROR:"MCP_DELETE_SERVER_CONFIG_FILE_ERROR",MCP_SERVER_RUNTIME_ERROR:"MCP_SERVER_RUNTIME_ERROR",MCP_WORKER_ERROR:"MCP_WORKER_ERROR",MCP_HOST_REQUEST_ERROR:"MCP_HOST_REQUEST_ERROR",MCP_TOOL_CALL_ERROR:"MCP_TOOL_CALL_ERROR",MCP_RESOURCE_READ_ERROR:"MCP_RESOURCE_READ_ERROR",MCP_EXTERNAL_CALL_ERROR:"MCP_EXTERNAL_CALL_ERROR",ENHANCE_PROMPT_UNKNOWN_TOKEN:"ENHANCE_PROMPT_UNKNOWN_TOKEN",ENHANCE_PROMPT_DUPLICATE_KEY_CONFLICT:"ENHANCE_PROMPT_DUPLICATE_KEY_CONFLICT",ENHANCE_PROMPT_UNKNOWN_NODE_TYPE:"ENHANCE_PROMPT_UNKNOWN_NODE_TYPE",ENHANCE_PROMPT_VALIDATION_ERROR:"ENHANCE_PROMPT_VALIDATION_ERROR",ENHANCE_PROMPT_CORE_ERROR:"ENHANCE_PROMPT_CORE_ERROR",ENHANCE_PROMPT_REQUEST_FAILED:"ENHANCE_PROMPT_REQUEST_FAILED",ENHANCE_PROMPT_INPUT_TOO_LONG:"ENHANCE_PROMPT_INPUT_TOO_LONG",CANVAS_TOOL_UNKNOWN_TOOL:"CANVAS_TOOL_UNKNOWN_TOOL",LEARN_SANITY_UNREACHABLE:"LEARN_SANITY_UNREACHABLE",LEARN_SANITY_PLAN_LIMIT_REACHED:"LEARN_SANITY_PLAN_LIMIT_REACHED",LEARN_SANITY_HTTP_ERROR:"LEARN_SANITY_HTTP_ERROR",LEARN_SANITY_MALFORMED_RESPONSE:"LEARN_SANITY_MALFORMED_RESPONSE",LEARN_SANITY_RESULT_UNPARSEABLE:"LEARN_SANITY_RESULT_UNPARSEABLE",LEARN_GUIDE_UNRENDERABLE:"LEARN_GUIDE_UNRENDERABLE",LOCAL_CACHE_WRITE_ERROR:"LOCAL_CACHE_WRITE_ERROR",LOCAL_CACHE_READ_ERROR:"LOCAL_CACHE_READ_ERROR",LOCAL_CACHE_INIT_ERROR:"LOCAL_CACHE_INIT_ERROR"},KSe=new Set([R4.SOCKET_REJECTING_WAITING_REQUEST,R4.SOCKET_MAX_RETRIES,R4.SOCKET_TIMEOUT,R4.SOCKET_CONNECTION_ERROR]);var dv=class extends Error{constructor(r,a,o,n){super(`${r} ${a}`);Vn(this,"errorCode");Vn(this,"details");o&&(this.cause=o),this.errorCode=r,this.details=n||{}}};var p9=class extends dv{constructor(r,a,o,n){super(r,a,o);Vn(this,"extraInfo");this.name="WebviewError",this.extraInfo=n}};var fv="var(--vscode-charts-green, #3FE38B)",YO="var(--vscode-errorForeground, #f47067)",Tr=K5`
|
|
2683
2683
|
font-family: var(--vscode-editor-font-family, ui-monospace, monospace);
|
|
2684
2684
|
font-feature-settings: 'tnum';
|
|
2685
2685
|
`;var aA=E(H());var LY=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]);function pv(e){return LY.has(e.trim().toLowerCase())}function m9(e){return e?pv(e.family)?e.family.toLowerCase():`${JSON.stringify(e.family)}, sans-serif`:"inherit"}function mv(e){let t=e.filter(r=>!/\balternative\b|\boption\b/i.test(r.role));return{heading:t.find(r=>/\bhead(?:ing|line)|\btitle|\bdisplay/i.test(r.role)),body:t.find(r=>/\bbody\b|\bparagraph/i.test(r.role))}}function XO(e){return`${e.patterns.length} AI-slop pattern${e.patterns.length===1?"":"s"}`}function JO(e){let t=e.directions[0].sections;return e.directions.every(r=>r.sections.length===t.length&&r.sections.every((a,o)=>a===t[o]))?t:[]}function $2(e,t){let r=new Map;return e.map(a=>{let o=t(a),n=r.get(o)??0;return r.set(o,n+1),{key:JSON.stringify([o,n]),item:a}})}var tA=E(H());var xY="https://fonts.googleapis.com";var eA=`${xY}/css2`;var g9=new Map;function SY(e){let t=g9.get(e);if(!t){let r=document.createElement("link");r.rel="stylesheet",r.href=`${eA}?family=${encodeURIComponent(e)}:wght@400;600&display=swap`,r.dataset.designBriefFont=e,r.addEventListener("error",()=>S1(new Error(`Design brief font stylesheet failed: ${e}`)),{once:!0}),document.head.appendChild(r),t={link:r,users:0},g9.set(e,t)}return t.users+=1,()=>{let r=g9.get(e);r&&(r.users-=1,r.users===0&&(r.link.remove(),g9.delete(e)))}}function h9(e){let t=[...new Set(e.filter(r=>!pv(r)))].sort().map(encodeURIComponent).join("|");(0,tA.useEffect)(()=>{let r=t?t.split("|").map(a=>SY(decodeURIComponent(a))):[];return()=>r.forEach(a=>a())},[t])}var v9=E(H());var w6=E(H());var rA=E(Gt());function gv(e){let t=g8(),{overlayStyle:r,overlayInnerStyle:a,destroyTooltipOnHide:o,styles:n,arrow:s,open:i,onOpenChange:l,...Q}=e,c=Q.title!==void 0&&Q.title!==null&&Q.title!=="",[u,d]=(0,w6.useState)(!1),[f,g]=(0,w6.useState)(!1),h=i!==void 0,y=u&&!f;return(0,w6.useEffect)(()=>{if(h||!y)return;let m=()=>g(!0);return document.addEventListener("pointerdown",m,!0),document.addEventListener("keydown",m,!0),()=>{document.removeEventListener("pointerdown",m,!0),document.removeEventListener("keydown",m,!0)}},[h,y]),(0,rA.jsx)(ir,{arrow:s??!1,destroyOnHidden:o??!0,color:t.colors.background.editorHoverWidgetBackground,...Q,open:h?i:y&&c,onOpenChange:m=>{d(m),g(!1),l?.(m)},styles:{...n,root:{...r,...n?.root},body:{color:t.colors.foreground.editorHoverWidgetForeground,border:`1px solid ${t.colors.borderColors.editorHoverWidgetBorder}`,fontSize:"var(--font-size-primary)",lineHeight:"18px",padding:"6px 10px",borderRadius:8,...a,...n?.body}}})}var ft=E(Gt()),V4=U.div`
|
package/package.json
CHANGED