Skip to content

Releases

v0.7.3

Choose a tag to compare

@vladimirstempel vladimirstempel released this 11 Nov 02:01
9469d57

Security hardening since v0.7.0, after a marketplace review, and better results from every action.

Limits on every transfer (0.7.3)

  • Every read stops at a byte limit and at a deadline: the clipboard, stdin, the agent's output and the model lists. Text over 256 KiB is refused, not cut.
  • A cancelled run stops its agent and removes its files.
  • The clipboard is put back also when a capture or a paste stops in the middle. A clipboard over 32 MiB is left alone.
  • A paste into the panel goes through omapen paste, with the same limits.
  • Fix: after a capture from a browser, text on the clipboard is put back as text that can be pasted.

Every action corrects mistakes and changes the text (0.7.2)

  • Each action now corrects spelling, grammar and typing mistakes on top of its own job.
  • Rewrite, Shorten, Formal and Casual always give text that reads differently from the original.

Private text stays private (0.7.1)

  • The text and the prompt go on stdin the whole way, never on a command line.
  • The state directory is private (0700, owned by you, not a symlink). The /tmp/omapen fallback is gone.

v0.7.0

Choose a tag to compare

@vladimirstempel vladimirstempel released this 10 Nov 23:55
ec6a73c

The model is now picked from a list, not typed.

A list of models in the settings

The Model setting shows the models the selected agent can run. Type to search
the list. The first entry is the agent's default, and Other... at the end
opens a field for an id the list does not have.

  • pi, omp and ollama are asked for their models each time the settings open, so
    a model you pulled a minute ago is there.
  • claude has no command that lists models, so it gets haiku, sonnet and
    opus. A full model id goes through Other....
  • System default shows the models of the agent that Setup points at.
  • An agent with no list keeps the field.

omapen models

omapen models [agent] prints the same list in a terminal, one id on a line.

Updating

omarchy plugin update omapen

v0.6.0

Choose a tag to compare

@vladimirstempel vladimirstempel released this 10 Nov 22:13
001e646

Settings you can reach from the panel, and a result you can use with one key.

Settings in the panel

The gear in the top right corner opens the settings in place of the actions:
agent, model, what to do with the result, reading the focused window, and the
panel width. A change is saved as you make it and applies to the next run. The
gear again, or Esc, goes back to the actions with your text where you left it.

Changing the agent clears the model, since a model id belongs to the agent it
was picked for. omarchy bar set omapen ... still works and writes the same
place.

Focus lands on the result

When a run finishes, focus moves to Replace, or to Copy when you typed the
text yourself. Return uses the result.

Omarchy 4.5

  • The panel no longer claims an IPC target of its own. With two monitors that
    logged a warning on every load. The keybinding goes through the bar, as
    before.
  • The result and the error are drawn as plain text, so markup in an agent's
    answer is shown as written.

Updating

omarchy plugin update omapen

This covers 0.5.0 as well, which had no release of its own: a local model
through ollama, and rewrites that keep em dashes and semicolons out.

v0.4.0

Choose a tag to compare

@vladimirstempel vladimirstempel released this 10 Sep 01:43
b32706d

The panel is one shape now, whatever it was opened with, and capture answers a
narrower question than it used to.

Worth updating for on its own: opening the panel while an image was on your
clipboard destroyed it. That is fixed.

The panel

The captured text sits in a field you can edit before you run anything, so a
selection that came out with a stray half sentence is trimmed there rather than
back in the document. Editing it changes only what the agent is given, and the
window it came from is still remembered, so Replace knows where to paste.

The field takes more than one line. Return breaks the line, Tab moves on to the
actions.

Nine actions in a three by three grid, all one width, each with its Alt digit
on the left edge. The free prompt lives behind the ninth, Custom, which
toggles and switches off when you pick another action. Fix grammar and
Rewrite lead, since they are what the panel is opened for. Translate to English is Translate to EN, and the panel is a little wider.

What capture reads

It asks the focused window to copy, with Ctrl+C, and that is the whole answer
rather than a first try: a window that copies nothing has nothing selected.

Three things it no longer does:

  • Select the whole field for you. Ctrl+A Ctrl+C put a page into a rewrite
    that was meant for a sentence.
  • Reach for the clipboard. It holds whatever you copied at some point
    today. Text you copied yourself is a paste you can make when you want it.
  • Read terminals. Asking one to copy types into the prompt instead, and
    reading the selection it publishes returned whatever you last highlighted in
    some other window.

Nothing selected opens the panel empty, ready to type or paste into, which is
also what happens over a terminal.

Read the focused window still turns the Ctrl+C off. Its description said it
did things it no longer does.

Fixed

  • Opening the panel destroyed an image on the clipboard. Capture clears the
    clipboard so it can tell "nothing was copied" apart from "the same text was
    already there", and put the old contents back through a shell variable. Bash
    cannot hold a NUL byte, so an image went in as PNG and came back as a shorter
    string of application/octet-stream rubbish. This happened on every open,
    whether or not you ran anything. The clipboard is saved to a file with its
    type now and restored byte for byte.
  • That rubbish could then turn up in the panel as if it were a selection.
    Capture only accepts a clipboard that offers a text type.
  • Opening over a terminal came back holding another window's paragraph.
  • Shift+Tab out of the Custom prompt skipped to the eighth action, and
    with the prompt closed the Custom button could not be reached from the
    keyboard at all.
  • Replace pasted with Ctrl+V into terminals, where that is the
    literal-next escape rather than paste. No capture records a terminal now, so
    the case is gone with it.

Under it

Panel.qml went from 617 lines to 452, with six components under
components/. bin/omapen gained an edittext verb, which changes the
session text without forgetting where it came from, and lost the branches
behind the three removed capture paths.