ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
#!/usr/bin/env bash
# monaco-paste.sh — insert text into the Code OSS chat input (Monaco) via
# the currently-attached @playwright/cli connection. Synthesizes a
# ClipboardEvent('paste') with a DataTransfer payload — no system
# clipboard involved, so safe to use against multiple parallel Code OSS
# instances (each subagent's @playwright/cli attaches to its own CDP).
#
# Why this exists: VS Code Monaco's `native-edit-context` element doesn't
# react to `@playwright/cli`'s `fill` or `type`. The pbcopy+press alternative
# works for one instance but `pbcopy` writes the system-wide NSPasteboard,
# so two parallel callers can stomp each other's clipboards.
#
# Usage:
# echo "the prompt text" | scripts/monaco-paste.sh
# scripts/monaco-paste.sh "the prompt text"
# scripts/monaco-paste.sh --append "additional text" # don't clear first
# scripts/monaco-paste.sh --no-verify "..." # skip read-back check
# scripts/monaco-paste.sh --session NAME "..." # use a named @playwright/cli session
# # (also honored via $PW_SESSION env var;
# # required for parallel multi-instance runs
# # — see SKILL.md "Typing into Monaco")
#
# Stdout: a single JSON line, e.g.
# {"ok":true,"actualLength":47,"expectedLength":47,"viewLineCount":1,"firstViewLine":"..."}
# Stderr: diagnostic noise from @playwright/cli (suppressed unless caller wants it).
# Exit code:
# 0 success
# 1 paste verify failed, eval failed, or the page had no chat input editing surface
# 2 argument/usage error (empty input, missing tools)
#
077
--append
--no-verify
--session
*
-h--help
--
-*
*
//playwrightScripts/focus-chat-input.ts, newlines, etc.
npx jq
/dev/null
darwin*Darwin*
*
npx @playwright/cli " run-code /dev/null
npx @playwright/cli " press /dev/null
npx @playwright/cli " press Backspace /dev/null
element.closest
element.closest
const style getComputedStyleelement
element.isConnected
element.getClientRects.length
style.display
style.visibility
root isEligibledocument.activeElement ? document.activeElement undefined
const selector of selectors
root Array.fromdocument.querySelectorAllselector.findisEligible
root JSON.stringify ok: false, error:
root.focus
const dt new DataTransfer
dt.setData,
root.dispatchEventnew ClipboardEvent, clipboardData: dt, bubbles: true, cancelable:
const editor root.closest
// Monaco renders regular ASCII spaces as U+00A0 NBSP view-lines
// visual fidelity. Also, joining view-lines drops the logical newlines
// between them. Normalize both sides before comparing.
// Note: u00A0 and rn are double-escaped because this string lives
// inside a template literal that would otherwise resolve them.
const norm s s.replace/u00A0/g, .replace/r?n/g,
const expectedFull norm
const expectedPrefix expectedFull.slice, Math.min, expectedFull.length
const verifyEnabled
viewLines
joined
prefixMatched
let attempt attempt attempt++
await new Promiser requestAnimationFrame
viewLines Array.fromeditor.querySelectorAll.mapl l.textContent
joined normviewLines.join
prefixMatched joined.startsWithexpectedPrefix joined.includesexpectedPrefix.slice,
verifyEnabled prefixMatched
await new Promiser setTimeoutr,
JSON.stringify
ok: verifyEnabled prefixMatched,
actualLength: joined.length,
expectedLength: .length,
viewLineCount: viewLines.length,
firstViewLine: viewLines .slice, ,
error: verifyEnabled prefixMatched ? undefined
`