Plugins that show the agent's skills (catalog views, "open this skill", drift checks against the
installed copy) need the same walk, order, search roots and lookup gate the skills_list / skill_view
tools use, plus the package hash the bundled-skill sync stores. All seven were private.
Rename, with every internal caller moved and no underscore aliases (same shape as the platform
helpers in e6cf2a9):
- tools/skills_tool.py: find_all_skills, sort_skills, skill_search_dirs, locate_skill,
skill_lookup_path_error
- tools/skills_sync.py: dir_hash
- tools/skill_usage.py: read_skill_name
The names join _PUBLIC in the private-import lint and are documented under "Read the skill catalog"
in the plugin developer guide.
Builds on #129698 by @nekwo, which proposed the same names with legacy aliases kept.
Closes#129696
Co-authored-by: nekwo <beastant1@gmail.com>
The model looked around, found the gh CLI and said it would suggest GitHub,
which this account cannot connect; the card showed no suggestion. The
look-around offer now lists the connector slugs the card shows, and a
connectors card whose suggestions are not on that list is refused without a
card, naming them and the list. With no list reachable, suggestions pass as
before.
The scripted greeting and the name card's question follow the locale
onboarding.start records (the desktop UI language, else the OS locale),
across the nine desktop languages; anything else reads in English.
First tasks write plugin skills readably (blender:blender), and task_skills
kept any name with a colon unchecked. A portable plugin's skills register as
agent-plugin-<slug>-<sha8>:<skill> (the hash keeps distinct keys apart), so in
a live run skill_view("blender:blender") missed and the model worked without
the skill.
task_skills now takes a resolver that names each skill as this install loads
it and drops one that does not resolve, bundled or plugin. The setup_beat
result resolves <catalog-plugin>:<skill> through the installed catalog plugin
(catalog name -> install dir -> loaded plugin key -> its registered skills).
find_plugin_skill stays an exact lookup.
(cherry picked from commit 354e30dd70c549fffc1ac7d3de2c8de5e7acbf6a)
A setup_beat card answered with wrote_instead records Wrote (no text in the
result), and the inline executor interrupts the turn with the new-message
reason: setup_beat runs inline, so its result is kept and the loop stops
before another model call. The words reach the model as a real user turn,
whose turn note now says how a typed answer applies the closed card. The
name card keeps taking typed words as the name.
(cherry picked from commit 400e7b208bafb0b41ae24cc089a95595abfefafe)
setup_beat for the connectors card (direct or via next) while look_around is
not_offered is now refused with error "offer first", no beat key and no card.
The refusal's reminder carries the _LOOK_AROUND text and the flow marks the
offer as made in that step, since that is when the model receives it. A call
that passes suggest entries means the model already looked: the card shows.
Why: in Vesper run 1 the model sent set_theme(layout) and setup_beat(next) in
one batch. The connectors card showed before the offer, which rode only on the
after_layout reminder, and the run still recorded the offer as made. _shown no
longer marks offered and _after_layout no longer carries the offer.
The opening prompt now states the permission and its scope (installed apps,
developer tools, OS, hardware; never personal files without a specific ask),
and a yes to looking is an off-script request the model may act on at any beat.
Words typed while the name card waits are the name. The result now carries them as said too, and
the desktop draws said as the user's bubble before an answer's receipt (Greptile outside-diff).
Typing "done", a value given in words, a skip or the 5-minute deadline on the apps or plugins
card used to report nothing connected or installed, even after the user connected an app or
installed a plugin from the card. setup_beat now reads the machine's connected apps and installed
onboarding plugins for those closes and records them in the result and the run's picks.
The setup_beat request also carries its tool_call_id, so the desktop draws the card only on the
transcript row that owns it, and a build-pick refusal no longer names the beat (no card was shown,
so the transcript draws nothing for it).
The reminder before the build card lists the eligible rows and how to pick them. A picked task's
reminder opens with the skills to load (humanizer on every row; a bundled skill missing on this
install is dropped), then its skeleton. How Hermes works opens in the default browser, or in
desktop_preview when Hermes runs elsewhere. The brief and week rows carry the connectors playbook.
setup_beat(beat="build", options=[{id, label}]) takes up to four eligible ids with pills of
32 characters or fewer; anything else is refused with the eligible ids and no card goes out.
The card is the picks then How Hermes works. The old fixed picker is gone; a task named in words
records as own. A bring-back without options reuses the picks already on the card.
Sid's ruling: the model never decides that the user wants to quit setup.
setup_beat(beat="done", skip=true) is gone; beat=done only completes a
run whose build card was shown. A user who says they want to stop is told
in one line that the Skip setup button ends it (opening rules, the
refused-done result, the tool description), and onboarding.skip stays the
only early exit.
tools/setup_beat_tool.py shows a beat's card and blocks until the user
answers (the card callback is a server request, like clarify), then
returns their answer with a reminder of the next beat. beat=next shows
the first open beat; value and skip record an answer given in words
without a card; beat=done ends the run once the build card was reached,
and beat=done with skip=true ends it early when the user asks to stop.
Words typed while the name card waits are the name. The account's full
name goes to the name card only.
The tool lives in a new desktop-only "onboarding" toolset, which nothing
enables by default; the gateway folds it in for the onboarding chat only
(next commit). It runs inline in the agent loop (inline_tool_executors)
with the session's store and the agent's setup_beat_callback, and never
in parallel with another tool.
Two loop seams:
- tool_executor passes every successful tool result to
onboarding.observe_tool_result, so set_theme, manage_connections
display and gui_tour (also when reached through tool_call, which the
executor unwraps first) settle their beat.
- turn_tool_round treats a setup_beat round like a housekeeping round
for the empty follow-up: the line written with the card becomes the
reply instead of an empty-response nudge (not muted).