* refactor(session): move Session log validation into a module
Move header, seed-event envelope, and inherited-cut validation out of the
Session constructor into validation.ts without changing check order or error
text. Export needsInheritedSeedMarker for the fork marker rule the
constructor applies.
* feat(session): validate a Session log without constructing a Session
validateSessionLog composes the header, seed-event, surface, and
inherited-cut checks of Session construction in the same order. Omitting
eventState matches Session.create; an event state matches
Session.fromRestore.
* refactor: validate stored Session logs with validateSessionLog
The chat importer, session-query readSession, the format catalog, and JSONL
generation verification constructed a discarded Session only to validate a
log. They now call validateSessionLog with the same mode, inherited count,
and message interpreters.
* refactor(session): extract buildSessionHeader
Move new-Session header construction out of SessionStore.prepare into the
exported buildSessionHeader and name its input SessionHeaderMeta.
Automatic ids and duplicate checks stay in prepare.
* refactor(session): move header and fork error helpers out of the session index
Move buildSessionHeader into validation.ts and SessionForkError with
SessionForkErrorCode into fork.ts so later modules can import them without
importing index.ts. index.ts re-exports both under the same names. Complete
the JSDoc of the exported validation helpers.
* refactor(session): extract checkSessionLog from the Session constructor
Move header validation, seed acceptance with surface admission, and the inherited-cut check into checkSessionLog in validation.ts, keeping the constructor's order and errors. The Session constructor and validateSessionLog call it.
* test(session): cover Session log validation and construction helpers
Cover validateSessionLog against Session.create and Session.fromRestore in
every event state, buildSessionHeader, needsInheritedSeedMarker,
Session.readEvents range semantics, and the fork subpath export of
SessionForkError.
* docs(session): document Session log validation
Document validateSessionLog, buildSessionHeader, needsInheritedSeedMarker,
Session.readEvents, and the SessionForkError subpath export in the package
README. Align the Session and CreateSessionOptions type blocks, add
SessionHeaderMeta, regenerate the Cordis, event graph, and persistence
catalogs, and update the plugin entry, unknown-cast, and package dependency
registries.
---------
Co-authored-by: imccyu <[email protected]>
* test(session): cover SQLite persistence and document the provider
* test(session): align coverage with the latest SQLite implementation
* test(session): adapt storage coverage to the current SQLite backend
* feat(session)!: pass fork source through agent creation
* refactor: prepare forks privately and append child segment events
* refactor: choose fork sharing in SQLite creation transaction
* fix(session): preserve caller-prepared fork seeds
* feat(session): flush fixed fork prefix before child creation
* fix(session): persist fork sources and await parent drain
* chore: remove test and documentation changes from fork PR
* refactor(agent-loop): reuse agent fork source type
* fix(session): retain SQLite handle and JSONL errors after rebase
* perf(session): create forks from the caller's history without reloading the parent
The fork source carries the complete child history from seq 0. A live
parent's log supplies the shared prefix; a cold parent's prefix is used as
persistence returned it to the caller. The factory no longer reopens the
parent, and the JSONL backend copies the supplied history instead of
decoding the parent log again. The SQLite backend drains a live parent
writer before sharing its persisted prefix, so the factory no longer flushes
the parent or tracks owner disposal during that wait; its fork creation
serializes child events without the read-side validation and reports
publication failures through the shared wrapper.
* refactor(session-query): report the persisted prefix length on live observations
A live observation reports its event count as the persisted prefix, so the
fork command's boundary fallback only covers observations from other
producers.
* test(session): exclude the SQLite POSIX lease from Windows coverage
The SQLite copy of the session write lease executes its POSIX face only off
Windows, matching the JSONL exclusion.
* test(session): report legacy opener failures on stderr
The two-process suite asserts only the error name; the message and cause now
reach the inherited stderr so a CI failure identifies the SQLite error.
* refactor(agent): keep seed as the constructor input and narrow the fork source
CreateAgentOptions.seed stays the only constructor history; source names the
parent and cut a seeded fork shares. The factory stores the constructed log
with that source at creation, so no fork-only seed selection remains in the
loop.
* test(session): complete fork regressions and documentation
* test(session): propagate current SQLite fixtures through fork regressions
* test(session): describe fork creation from the caller's history
The fork source now carries the complete child history and the factory no
longer reopens or flushes the parent, so the fake factories, source
expectations, and cancellation cases follow that flow: a sharing backend
drains the parent writer itself, JSONL copies the supplied history, and
observations always report the persisted prefix. Documentation, the upgrade
guide, and the generated catalogs describe the same behavior.
* test(session): cover fork creation without a factory flush
The in-process fork provider's cases no longer wait for a parent flush: the
live log supplies the completed prefix and cancellation is exercised while
child storage is pending. The Remote fork command's boundary fallback is
covered by an observation that omits its persisted count.
* test(session): drop redundant observation assertions in the fork fallback case
* test(session): describe fork creation with seed beside a parent source
The agent factory keeps seed as the constructor history and source names
only the parent and cut, so the fakes, source expectations, and documentation
follow that split; the case where a live parent replaced the supplied prefix
no longer applies.
* refactor(session): name the fork parent option parentSource
`CreateAgentOptions.source` and `SessionPersistenceCreateOptions.source`
become `parentSource`: the field names the parent Session a seeded fork
shares its prefix with, and the shorter name read as a generic origin.
* refactor(session-query): report persistedEventCount on cold observations only
A live observation holds the Session's own events, none of them read-time
repairs, so its stored prefix is its whole log and the field said nothing;
only a cold read appends interrupted-turn closers in memory and needs to
tell the fork cut where the stored prefix ends.
- Name the model-visible page limits once and derive the schema text from them.
- Type the intermediate Session rows and make list_workspace's execute async.
- Document that blank Sessions are listed and that unscoped listing has unit
coverage only.
- State that the Workspace registry adds no model-visible surface of its own
while the optional listing tools expose its metadata.
- SessionReferenceResolver injects sessions and sessionProjections, which
sessionQuery now requires; its absent-registry label branch is unreachable
and is removed.
- The translator paid fixture mounts the projection registry beside its
SQLite query service.
- dsh-tool-session-list follows the master release version 0.2.2-rc.3.
Address review on #8238:
- Replace the Workspace.sessionHeaders property with getSessionHeaders(). The
public contract states only membership and order; the in-memory header index
is documented on the implementation.
- SessionQueryEngine now injects sessionProjections, registers the
sessionListMetadata projection in Service.init, and exposes
getListMetadata(session). Disposing the service releases the registration.
The Session API and list_session read metadata through ctx.sessionQuery;
registerSessionListMetadata and the passed reader closure are removed.
- SqliteSessionQueryEngine injects sessionProjections and chains Service.init.
- Tests: a newly attached Session appears in a later getSessionHeaders()
result; query-service disposal removes the projection; test query services
run Service.init; projection-order expectations follow the new registration
order.
Name every empty catch binding, state why each discarded failure is safe,
and narrow each wide try to the single statement whose failure is tolerated.
The empty-catch baseline is now empty.
* feat(session-query): import DeepSeek chat exports as Sessions
Add @deepseek-ai/dsh-deepseek-chat-import: the browser uploads a
deepseek_data-*.zip export, the Host buffers it in memory (bounded by
maxUploadBytes, default 512 MiB), linearizes each conversation tree to its
newest leaf, keeps the most recent maxSessions conversations, and stores one
Session per conversation in the chosen Workspace with original titles and
times. Reasoning, answers, web search/open fragments, and exported images map
to native events and attachments; withdrawn, failed, and templated replies end
their turn with an error and stay out of model context.
Also add the sidebar.session.action slot beside New session, publish the
New-session Workspace menu as the reusable workspace.picker Factory (with a
directory-flow hole both directory pickers fill), and add an upload icon.
* refactor(experimental): ship DeepSeek chat import as an optional bundle
Move @deepseek-ai/dsh-deepseek-chat-import from packages/session-query to
packages/experimental under its unprefixed name (recorded in
EXPERIMENTAL_PACKAGE_NAME_EXCEPTIONS). The Web composition no longer mounts
it: the package now declares dsh.bundle.patch with its own
deepseek-chat-import row, an icon, and localized display metadata, and joins
OPTIONAL_BUNDLES, MORE_BUNDLES, and EXPERIMENTAL_BUNDLES, so the Plugins page
offers it switched off under More with the Experimental badge. The dsh
installation carries it as an optional-bundle dependency.
Also fix the test typings that failed the aggregate build:check (branded
SessionId keys, the generic renderFactorySlot stub, an ArrayBuffer-backed
Request body), the lines oxlint rejected, and regenerate the config catalog,
module graph, and dsh-doc package list.
* docs(experimental): document DeepSeek chat import as an optional bundle
Rewrite the DeepSeek chat export import Agent Note for the current design,
add its English counterpart and pairing record: browser upload to an
owner-only exact route, in-memory unzip bounded by maxUploadBytes, one import
at a time, a Workspace chosen through workspace.picker, the closed failure
reasons, and delivery as an experimental optional bundle. Record the rejected
host-path input, Workspace file listing, and disk staging alternatives.
Add the package README pair in the package-bundle layout (enabling from the
Plugins page, Config fields, results, failures, implementation, Model
Experience, limitations), list the package in the experimental group tables,
and re-record the ui-sidebar README pair whose sidebar.session.action
paragraph changed on both sides without a new record.
* fix(experimental): import DeepSeek chat exports one conversation at a time
Address the review of the DeepSeek chat import route and importer:
- Decompress with fflate's asynchronous unzip, one entry per request, and
refuse any entry whose declared uncompressed size exceeds the new
maxEntryBytes (default 256 MiB) before inflating it. A first pass keeps
only each conversation's entry, id, title, and last-message time; a
second pass imports the selected conversations oldest first, one at a
time, yielding to the event loop between them.
- Fill the Session limit with the next older conversation when a selected
one fails; omittedByLimit counts only conversations never attempted.
- Check that the Workspace still exists before each write; a Session stored
but not attached is reported in skipped with its id.
- Stream the route answer as NDJSON progress lines and one outcome line; the
dialog shows a progress bar and "Importing n/K".
- The service owns the single import slot and an AbortController per
request; unloading cancels the running import and waits for it to stop.
- Buffer the upload once, sized from content-length; drop the unreachable
405 branch.
- limits() refuses non-owner callers.
- Normalize titles with normalizeSessionTitle (new maxTitleBytes, default
80); fixed error codes for unfinished replies with
DEEPSEEK_EXPORT_UNFINISHED_REPLY for unknown statuses; an empty user
message becomes "[empty message]"; a question whose reply was withdrawn by
content filtering is left out together with the reply.
- The plugin entry exports only the Service class, error classes, and
types.
- The dialog shows thrown errors, refreshes the Session list after every
attempt without turning a success into a failure, and chooses singular or
plural summary lines.
* docs(experimental): document and test the per-conversation chat import
Move the DeepSeek chat export import Agent Note to implemented/feature with
the Decision/Consequences skeleton and describe the shipped design: two
passes over the in-memory archive, the maxEntryBytes and maxTitleBytes
limits, NDJSON progress, the service-owned import slot and unload
cancellation, owner-only limits(), filling the limit, the per-conversation
validation guarantee, attach failures without a persistence delete, the
[empty message] placeholder, dropped content-filtered rounds, fixed error
codes, and branch selection that ignores current_message_id.
Update the package README pair to match, rewrite the unit tests for the new
importer, route, archive, and client behavior (including a declared-size
zip bomb, a misdeclared entry, buffer sizing, owner-only limits, and
unloading during a paused import through the real Loader composition) at
100% per-file coverage, classify normalizeSessionTitle as a peer-required
Host export, record the Session exports the importer already uses in the
dependency policy spec, fix the lines oxlint rejected, and regenerate the
config catalog and module graph.
* fix(experimental): give imported Sessions a protected empty system head
An imported seed had no system/message, so a resumed Agent appended its
system prompt after the imported history. The released Session format
accepts a system/message only as surface node 0 or after such a head, and
the JSONL reader checks this on every read, so a continued imported Session
failed to open again with SessionPersistenceCorruptionError.
The first imported turn now writes an empty system/message as surface node
0. It derives no model message and renders no prompt card; on resume the
Agent replaces it with the real prompt. The resume test asserts the single
replacement, one system message in the model request, and a successful
read of the stored log after the turn.
* test(web): record a DeepSeek chat import snapshot
Add the keyless Web snapshot case snapshots/web/deepseek-chat-import with
its driver apps/web/tests/deepseek-chat-import.e2e.ts. The driver enables
the optional bundle in the scaffold profile, uploads a synthetic export
through the owner route (two conversations: a branch, reasoning, a
web_search/web_fetch pair, a content-filtered round, and an incomplete
reply), opens the imported Session in the browser, and continues it with
one recorded model turn. The persisted log shows the empty system head
replaced by the real prompt and replays without a key.
Register the driver in the Host program and out of the Web Client
program, and point the package README pair and the Agent Note at the case.
* fix(experimental): classify the chat import service in the doc gates
The chat import service surfaces in the Cordis catalog, the capability-seam
graph, and the plugin manager inventory, but none of the three gates knew
about it: doc graphs threw on the missing role classification, the catalog
gate rejected the unclassified `DeepseekChatImportLimits` and the service
without a subsystems page, and the Web inventory expectation predated the
bundle. Map `ctx.deepseekChatImport` to persistence.md and classify the
limits type and service role, then regenerate the catalog and graph docs.
The two Web replay fixtures were recorded before the bundle was listed, so
regenerate them against the current catalog and plugin inventory.
* fix(experimental): upload chat imports through the page transport carrier
A page whose Host runs in another execution context has no HTTP server:
the preview answers the archive POST with 405. Send the export through the
pre-boot `__DSH_TRANSPORT__.fetch` carrier when a shell installed one, and
keep XMLHttpRequest on served pages so the browser still reports upload
progress.
* test(experimental): cover the chat import upload carrier path
Cover the page-transport branch of the export upload, which the previous
commit left untested: the carrier request, a streamed NDJSON answer, an answer
without a body, non-200/JSON/result failures, and cancellation before and
during the request. Both upload paths now share one answer collector, so the
XHR path keeps its behavior with fewer branches.
Resolve the generated `./remote` contribution through a stand-in when this
package has no built `lib/`, as the LiveShare suite does: on a clean checkout
Vite transforms the client entry before `vi.mock` can answer that import, which
failed the jsdom assembly suite in CI.
Record the Chinese capability-seams row and the pair after the generated
English row, so the bilingual pairing gate passes.
* feat(experimental): import the 2026-11-12 DeepSeek chat export structure
The 2026-11-12 exporter keeps `export_format_version: 3` while adding
`current_message_id`, `stage_id`, tool statuses, plaintext `READ_LINK` fields,
and exported `TOOL_FIND.pattern`. Read the added fields as optional so a
structurally older archive still imports.
- Select the branch ending at `current_message_id`, falling back to the
greatest message id when the field is absent, null, or unknown.
- Split steps at a `stage_id` change; fragments without one keep the
reasoning-or-text-after-a-tool-call rule.
- Replay a `FAILED` search as an error result, skip `WIP`, and treat a missing
`status` as `FINISHED`.
- Write placeholder lines for opened pages without an address, links, image
searches, partial file reads, tips, and page finds instead of dropping them;
keep `CONTENT_RISK` dropped.
- Cover the new fields with a synthetic archive test, update the Web snapshot
driver to the new structure, and refresh its fixture.
* docs(experimental): record the 2026-11-12 chat import structure
Update the package README pair and the Agent Note pair for the branch rule
(`current_message_id` with the greatest-id fallback), the new fragment
mappings, the `TOOL_FIND` pattern, the `stage_id` step rule, and the
limitation that only the 2026-11-12 structure is supported. Re-record both
translation-pairing records.
* fix(experimental): reject duplicate and misdeclared archive entries
A ZIP may list several entries under one name, and read() selects by name,
so duplicates decompressed every match at once and bypassed maxEntryBytes.
Reject a directory with duplicate names while opening the archive.
A ZIP_STORED entry is copied by its compressed size, not by originalSize,
so a stored entry could declare 16 bytes and deliver a megabyte. Require the
declared and stored sizes to agree and bound both by maxEntryBytes before
anything is copied.
* fix(experimental): validate the chat import answer lines
parseLine cast decoded JSON to the line union, so a null or any other valid
JSON threw when the reader read line.type. In the XHR path that throw
happened inside onload/onprogress, leaving the upload promise unsettled and
the dialog on "importing".
Validate the decoded value against the union with typed guards: an object of a
known type with that type's fields. An invalid line now fails the answer as
"the server answered with invalid JSON". Covered on both the XHR and carrier
paths.
* fix(experimental): keep call-less chat import steps open and bracket tips
A stage_id change split a step even when it held only placeholder text, so a
placeholder-only step became an assistant message without a call and the
resumed history carried two adjacent assistant messages, which the live agent
loop never produces. Split only when the open step already holds a tool call;
otherwise update its stage.
A TIP is a website notice attributed to the assistant, so write it as the
bracketed placeholder [tip: ...] like the other non-model records.
* fix(experimental): report the import limit the Host applied
The pre-check limit (maxUploadBytes) was attached to every Host failure, and
failureText printed only that limit, so a manifest over maxEntryBytes was
reported as "the file is too large: the limit is 512MB".
Attach the pre-check limit only to the browser's own too-large outcome and
show the Host's message when it reports too-large, which names the real limit.
* fix(client): fade the imported sidebar action in with the rail
The rail-in fade targeted .newSessionRow > *, whose slot entry is the
renderer's display: contents anchor: it has no box, so the imported button
appeared without fading next to New session. Hit the anchor's child too and
assert the selector keeps the rail-in animation.
* docs(experimental): describe the chat import upload carrier
A page whose Host runs in another execution context, such as the static
Cloudflare Pages preview, supplies __DSH_TRANSPORT__.fetch and carries the
archive over it with no byte progress, straight to the reading and importing
phases; a served page uses XMLHttpRequest. Record that in the README and the
Agent Note, and list the missing upload percentage under Known Limitations.
Also record the bracketed [tip: ...] placeholder, the stage-split rule that
keeps call-less steps merged, the within-step block order, and why
dsh-client-file-upload is not reused. Re-record both i18n pairs.
* fix(client): fade only the slot entry with the rail
The rail-in rule reached every child below the row's slot anchor, which
also matched the label mask and shortcut inside the New session button:
the button ran the animation twice, so its icon was clipped and then slid
in from the edge. Target the renderer's `data-slot` anchor child, which
is the registered session action alone, and assert that no rule under the
row reaches into the button.
* feat(experimental): stream the chat import from the export index
`chat_session_index.json` now selects the conversations: the newest
`maxSessions` by its `updated_at` (ties by `inserted_at`, then id) are
imported, and a missing or unreadable index fails with the new
`missing-index` reason instead of falling back to a scan.
The selected conversations are handled in one streaming pass over the
archive. Each conversation is parsed, converted, and written as it
arrives; one that waits for its images is held until they stream past or
the archive ends, and images that never arrive stay placeholders. No
conversation the index does not select is inflated, and a failure pulls
the next older indexed conversation by name.
The pass reports a stored entry whose declared size differs from the
bytes it holds as damage, not as an oversized entry, and reports actual
bytes above `maxEntryBytes` as oversized.
* refactor(client): wrap the New-session row with the session-action slot
Make `sidebar.session.action` an HOC layer instead of a list: the shell
passes the New-session Tooltip and button as `children` and an occupant
returns them together with its own controls. No wrapper element is added,
the per-entry anchors are gone, and an occupant that adds nothing (or may
not act) returns `children` unchanged.
The rail-in fade now targets the outlet anchor's children, because the
renderer's `display: contents` anchor has no box of its own; the style spec
asserts the rule matches both buttons and nothing inside them.
* fix(experimental): read chat-import images by name
Resolve each selected conversation's images by name through the archive's
targeted read instead of holding the conversation until its image entries
stream past. Archive entry order no longer decides whether an image is
attached, and an image rejected for size or corruption reports its own
reason. A replacement conversation now runs image planning and reads inside
its per-conversation failure handling, so an invalid candidate is skipped
instead of aborting the import.
* docs(experimental): record chat-import residual risks
Document the synchronous inflation that outlives the entry size bound,
duplicate local file headers, partial writes after a mid-pass archive
failure, by-name read truncation, and attachments stored for withdrawn
rounds. Explain the session-action HOC layering and the children obligation
in the Agent Note, and align both language pairs.
* docs(experimental): give the chat import a plugin detail page
The Plugins page renders `meta.detail` rather than the README, so the package
now ships `docs/DETAIL.md` and `docs/DETAIL.zh.md` beside Chinese and English
preview images of the import dialog. Every locale names its detail document,
and `docs` joins the published files.
* fix(experimental): store chat-import images in one archive pass
Pass 1 stores every image entry of a conversation the index chooses, before any conversation is parsed, and records the reference or the reason it stayed a placeholder. Pass 2 converts and writes each chosen conversation from those references, so the main path no longer re-parses the central directory once per image. A replacement conversation is still read by name once, and its images come from one further image pass.
Correct the convertWithStoredImages JSDoc and the Known Limitations entry: the images-first order makes validate-before-store impossible, so images of a withdrawn round, a dropped branch, or a conversation that fails conversion or Session.create seed validation stay stored without a referencing event. Neither SessionPersistence nor the attachment store offers a removal.
Settle the browser answer on the first invalid NDJSON line in both the XHR and page-carrier paths, cancel the rest of the stream, and prevent a later outcome from replacing the failure.
* fix(experimental): drop image searches and address-less opens from the chat import
The website shows neither of these in a reply, so the import no longer
writes a line for them:
- `TOOL_IMAGE_SEARCH` replays as nothing. The searched image is not in the
export and the reply's reasoning already states what the model took from
the results, so the `[image search: n results]` line carried no
information a reader could act on.
- A `TOOL_OPEN` without an address is the all-null record the exporter
writes beside the real page opens of a stage, carrying only `stage_id`
and `group_id`; it names no page and replaces the line
`[opened page: the export recorded no address]` with nothing.
A constructed archive with a pictured question, an image search, two opened
pages, and the all-null record now imports to the image, the two fetch
cards, the reasoning, and the answer.
* feat(experimental): show imported files as cards instead of placeholder text
The website shows none of these records as reply text, so the import now
matches it:
- A non-image file, and an image the archive cannot store, become a synthetic
file card: the standard card renders its icon, name, and exported size, and
no bytes exist behind the reference.
- A `READ_LINK` record becomes one Markdown link line per linked page.
- A `TOOL_FIND`, `PARTIAL_FILE_READ`, `TIP`, or `TOOL_IMAGE_SEARCH` record
leaves no trace in the reply.
- A user message without any content keeps one empty text block instead of
`[empty message]`.
`file_size` is optional in the export schema so an archive without it still
imports.
* fix(session-query): keep the session-log export when an attachment is gone
A reference whose stored object was deleted failed the whole ZIP download.
Each attachment is now read inside the entry that needs it: a missing object
is recorded in `attachments-missing.txt` with its archive path and reason,
while every other read failure still fails the export. A file's first chunk
is pulled before its entry is yielded, so an absent object no longer breaks
the download halfway through.
* fix(experimental): take attachment brands and error codes from their owners
The import package now builds the synthetic file reference with
`brandString<AttachmentId>` from dsh-brand instead of importing the
attachment package's runtime helper, so dsh-attachment stays type-only and
dsh-brand becomes its one runtime dependency. The log export matches the
missing-object code on the error instead of importing the class, which keeps
that class its owner's peer.
The recorded web snapshot follows the new link line.
* fix(session-query): release an abandoned attachment stream and accept invalid references
A consumer that stops early left the open file iterator to the garbage
collector: the entry's stream is now closed by the entry owner too, so a
cancelled download releases it. A reference the backend rejects as invalid
joins a missing object as a reported skip rather than failing the download.
The chat import documents that an empty question's text block is dropped by
DeepSeek request serialization, so that Turn's question stays out of the model
context.
* docs(experimental): drop a duplicated clause from the import note
* fix(session-query): close abandoned attachment streams without masking failures
Closing one stream must not keep the others open or replace the failure in
flight: the streams live in a set that removes each entry as it closes, and
the drain settles every close. The chat import converts a pictured
conversation once, resolving its references first, and states both possible
model handles for a synthetic card.
Match the new package to the merged 0.2.2-rc.2 release version, and add the
cua agent-scopes test to the exact-path rescope exceptions for its cordis
preset id.
Drop contain_subagent from list_session: discovering subagents of a Workspace
needs either a corpus scan or the parent subagent catalog, so this version
lists only non-subagent sessions.
A workspace_id call now reads its members' headers from the Workspace
registry index through the new Workspace.sessionHeaders, so its work grows
with the member count instead of enumerating every stored Session. Unscoped
calls still enumerate the corpus headers.
* feat(release): publish package source, declaration maps, and documentation
Every release member publishes its TypeScript source and the declaration
maps that resolve into it, and @deepseek-ai/dsh publishes the repository
Markdown documentation staged from docs/ at prepack time.
The ./src/* export most members already declared now resolves for an
installed consumer, and a consumer editor follows a declaration to the
implementation. Bundled JavaScript maps stay unpublished; the vendored
family and the Desktop runtime file policy are unchanged.
Rationale: .agents/notes/implemented/process/2026-10-08-published-source-and-docs.md
* feat(release): publish JavaScript maps and compress bundles
Every emitted JavaScript map ships beside the bundle it describes, and the
workspace build and the client preset compress bundles without mangling
identifiers.
The documentation payload now mirrors the website publication manifest and
is removed again by `postpack`; Desktop and the Python executable exclude
the published source, documentation, and maps; `clean` removes a staged
copy. Typert's publication contract gains the Remote declaration map.
* fix(release): keep node bundles readable for the worker image
The browser worker image lowers `yield*` only as a whole statement and
rewrites `for await` loops by their source layout, so compressed node-side
entries either fail that lowering or lower to unparseable code. Only the
browser bundles keep compression, which removes about a third of their text.
The bundle-purity assertion now matches the module-loader call regardless of
the quote style compression picks, and the release-pack fixture exercises
the installed package's new documentation requirement.
* feat(release): publish the whole documentation tree
`@deepseek-ai/dsh` copies `docs/` in full instead of the website's page
set: the maintainer documents, the generated migration records, the
translation guidelines, and the `*.i18n.yaml` consistency records ship
with the installed package, so the documentation's own links resolve
without a checkout.
* feat(release): publish the upgrade guides with the documentation
The staged documentation keeps the website's page set and adds every
`docs/upgrade-guide/` document, which is what an installed reader consults
when a released change breaks something. The rest of the maintainer tree
stays out.
* test(release): expect source and maps in master's new payload cases
* feat(release): keep installed docs and source readable in Desktop
Desktop keeps the published src/ and docs/ trees inside app.asar, and
every model shell call receives DSH_INSTALL_DIR and DSH_NODE_EXECUTABLE
so an agent can read them through Electron's Node mode. Staging also
generates docs/upgrade-guide/README.md, an index of the upgrade guides
grouped by the release they upgrade from.
Minified client bundles print string literals with backticks: the
worker image packer now recognizes those chunk requests, client license
banners are prepended after minification so their text survives, and
the affected artifact tests accept either quote.
* test(desktop): read archived docs through the Windows PowerShell form
Regenerate the config catalog for the shifted shell-env source line.
* test(desktop): wait for the GUI-subsystem Electron process from PowerShell
* build(release): publish source and maps from the message-quotes package
* build(release): publish source and maps from packages new on master
* build(release): publish source and maps from the tool-office package
Address review on context-menu target ownership and MenuRow typing.
- `ui-workspace` declares the `workspace` target and `ui-conversation`
declares `sessionHeader`; `ui-context-menu` no longer depends on
`@deepseek-ai/dsh-workspace`.
- Remove `buttonTargetKey`. A shared button now toggles only the popup it
opened, tracked by its instance id, so the menu service needs no
per-kind identity rule.
- Name the optional-or-undefined props helper in `MenuRow`, document its
package-internal props, and replace the `MenuDecoration` component with a
typed render helper.