a44da380b (v0.1.4044) read a pasted vendor setup only in the Add sheet's
search box. With providers already there, the box in sight is the
Providers page's own "Find a provider" (#pvQ), and a paste there only
filtered the list: a real Cmd+V of export ANTHROPIC_BASE_URL / _AUTH_TOKEN
left the text in the box with "No provider matches", in Chromium and
WebKit alike. The reader also took the tweet's own shape wrong:
`export XXX_BASE_URL="…" export XXXAUTH_TOKEN="…"` on one line gave an
OpenAI URL with the second export in it and no key.
- pastedProvider (pasteread.js) opens the custom provider from either
search box, for env lines, JSON, "address + key" lines and now a curl
command too, and says what it filled. A setup with no web address (the
tweet's example-xx) opens with its key and asks for the base URL,
rather than doing nothing. "token plan" and other words after KEY or
TOKEN open nothing.
- Both boxes also read a paste from its input event (insertFromPaste,
insertFromDrop), for a paste whose event has no text or that came
before pasteread.js loaded; the one-line box runs the lines together,
so the reader takes several NAME=value on one line, glued or not.
- envOf reads what pages and Windows do to the text: zero-width
characters, no-break and ideographic spaces, full-width = and :, curly
quotes, cmd's set "NAME=value", CR-only lines, and a piece of
settings.json ("env": {…}, or its lines, a trailing comma included).
- The site's icon arriving no longer wipes the note of what was filled.
- New string in zh, zh-TW, ja, de: "The pasted text gives no web
address: type the base URL."
Run (mote, base origin/main 48e394146, rebased on 9e3b269c5, which
touches none of these files):
- provider-env-paste, Chromium and WebKit, en/zh at 900 and 440px:
34 of 34. Red on the old app.js/pasteread.js/i18n.js with the new
test: 18 of 34 (envOf's oneLine case, Providers' search, the input-event
paste).
- A real keyboard paste (text copied from a textarea with Cmd+C, then
Cmd+V into the box, CRLF lines), a scratch script not committed: on
the old code #pvQ keeps the text, no editor, both engines; on the new,
both boxes open the editor with the URL and key, both engines.
- add-sheet*, custom-*, i18n-keys, i18n-en-no-cjk, provider*, providers*
(76 files, both engines): 1838 of 1890. The 52 reds are in
provider-fetch-again, provider-many-keys, provider-max-output,
provider-models-rest, provider-picks-stay and provider-typed, and the
same 52 fail in a clean origin/main 9e3b269c5 copy: #6532, #6209.
- At the pushed head (rebased on 9e3b269c5): provider-env-paste,
provider-curl-paste, i18n-keys, i18n-en-no-cjk: 52 of 52.
- go test -tags nogui ./internal/gui (mica): ok, TestCoreScriptBudget
included (app.js is smaller; the opening moved to pasteread.js).
Not tried: the packaged app itself (the release build serves
pasteread.js from assets.zip as before), WebKitGTK, Windows WebView2's
context-menu paste.