Files
orca/src/shared/orcad-artifacts.ts
T
Brennan BensonandClaude Opus 5.5 2648941358 Fork a Chat UI chat from any finished response (#38326)
* feat(chat): shared contract for forking a chat from a response

Adds the create-time fork source, the host fork capability, the agent fork
level, the forked-from record relationship and the forked-from divider row.

* feat(chat): advertise each agent's fork level and a chat's fork support

* feat(chat): carry a fork source through chat launch, reload and retry

A launch with forkFrom {sessionId, throughItemId} keeps it on the create call,
the saved launch record, reload, retry and its holders, sends no new-chat
options, and is refused before create on a host that does not advertise forks.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* feat(chat): fork a native chat from a finished response on desktop

Finished root responses offer "Fork from this response" where the host and
agent can fork: disabled while support is unknown or a fork is opening, opened
in a new tab right after the source, with one toast naming the agent on
failure. The forked-from row draws as a divider linking to its source.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* feat(mobile): fork a chat from a response in the message actions sheet

The sheet offers "Fork from this response" with the desktop's eligibility and
host capability, creates the fork through the phone's chat create, and draws
the forked-from divider with a link to the source chat.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* feat(chat): a fork create replays only as the same fork

* Add native conversation copy adapters

* Create native chat forks with derived source markers

* fix(chat): offer a fork only on rows that show the agent's own message

A displayed row can be a tool call or a status projected as a plan while
reading as a response; both clients now check the journal row's own kind.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(chat): open phone and paired-desktop forks right after their source

The phone names its source tab as the create's placement and the host takes
that tab's group; a paired desktop sends the address captured at the click
when the fork has no tab of its own yet.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(chat): float a mid-turn response's fork action instead of adding a line

The action on a response the turn continues past hangs from a line of no
height, as the reply controls hang into the gap, so tool-heavy turns keep
their spacing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(chat): follow the chat's own fork verdict on both clients

The options read already says whether the installed agent forks; an observed
no hides the action, an unanswered read keeps it disabled, and yes enables it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Preserve native copy boundaries and rewind behavior

* Preserve imported fork tips and serialize create replays

* fix(mobile): open a fork's source through the session's own chat opener

The forked-from link now asks the controller's existing opener for the source
by history id, so it follows that opener's host, selection and reveal rules
instead of navigating on its own.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Project fork markers from touched journal groups

* Retain fork group restoration for delayed readers

* fix(chat): keep a mid-turn response's fork in its own right gutter

The floated action covered the start of the next row. It now sits beside the
response's last line, in a gutter as tall as the prose, so it adds no line and
never reaches the following row.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Preserve native fork chain boundaries and durable streamed copies

* Place phone forks beside their source in window publications

* fix(tabs): adopt a host's new tab where the host placed it

First adoption put every unseen tab at the end of its group, so a fork the host
published after its source landed last. A new tab now follows its nearest host
predecessor when that tab is here; tabs already adopted keep the user's order.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(chat): reserve the fork gutter on every root response from the first frame

The gutter came and went with the fork offer, so prose reflowed when a turn
finished or support resolved. A pane that draws forks now keeps it on all root
responses, and the fork sits only there, not also beside Copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Return Codex copies without automatic provider renaming

* Resolve chat placement once at the current layout owner

* Preserve chat publication when saved opens are skipped

* Retry chat opens when queued placement changes

* Bound stale chat placement retries

* test: expect the OpenCode reader's imported fork tip

* perf(chat): keep the fork offer stable while a chat streams

Every stream commit made a new forkable-id set, so the fork context changed and
every offered response re-rendered. The set is reused while its members hold,
and rows get an action object that changes only with support or pending.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix: keep the fork params and Claude fork worker inside main's new lint limits

* Test fork copy and source refresh scaling

* fix: merge duplicate imports and stringify the OpenCode fork tip id for main's lint rules

* Keep fork placement behind session tab projection boundaries

* test: annotate the Claude copy test's hoisted account homes instead of asserting

* fix: add the fork action and forked-from strings to the English catalogs

* test: give fixtures the fork copy their agents declare; add the forked-from string to the boot catalog

* test: keep registry fixtures consistent with the fork copy their agents declare

* fix(orcad): ship the Claude fork worker with the server; update tests for fork fields

* Test saved fork selections through import and first send

* Preserve ordinary chat publication while saving placement

* Show fork beside the copy button on phone chat responses

Long-press opens text selection on every current phone, so the actions sheet that held fork never opened. The fork button now sits next to each response's copy button.

* Keep the phone fork slot fixed and offer it on every forkable response

The fork slot is now held by the row's own kind, as desktop's gutter is, so finishing a turn or learning the host's support never moves the timestamp. Responses with no copyable text (a visual only) still get fork, and each button re-renders only when its own offer changes.

* Follow main's moved runtime modules in fork code and tests

* test: build the phone response-actions fixture without type casts

* Let the phone read the host's agents so its fork action can turn on

Phone QA found the fork button always disabled: the phone asks the host which agents can fork, and the host refused that read from paired phones.

* Retry the phone's agent-list read, and read again after a reconnect

A read lost to a dropped connection or a timeout left Fork disabled until the chat was reopened.

* Own the phone's agent-list retry timer in its own effect

CI's effect-cleanup check could not see a timer set inside the read's callback; each retry is now a state change with an effect that sets and clears one timer.

* Give each phone connection its own agent-list retries

A count left over from an earlier connection could leave a new one with no retries, so one failed read kept Fork disabled after the transport moved.

* Scope the phone's agent-list retries to each spell of discovery

When the host's fork support dropped and came back on the same connection, the earlier failures carried over, so one more failure got no retry. Each stretch of discovery now owns its reads, failures and retry timer.

* Keep the forked-from source link reachable by screen readers

The divider's separator role and row label hid the source chat button inside it; the rules are now decorative and the text and button read normally.

* Keep fork names owned by adopted chat records

* Use the fork icon for Fork from this response

* Show the phone meta actions only when a row has one

An empty actions group still shifted the time by the icons' edge margin on rows with no copy, fork or rewind.

* fix(chat): put Fork beside Copy in the response's hover row

The fork button sat alone in a right gutter far from the other row actions.
It now joins the response's existing hover controls next to Copy, where those
controls show, and the gutter is gone.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(chat): keep a finished turn's actions on its last words and hold the Fork slot

A turn whose last prose was followed by tool or thought rows showed no Copy
and no Fork anywhere until it was collapsed. The actions now belong to the
turn's last prose row, decided when the transcript's rows are built, and keep
the gap below it whole so they never cover the next row. Root responses also
keep an empty Fork slot when not offered, so resolving support never moves
the row's other actions.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(chat): give a turn's actions only to a reply with words

An image-only reply after the turn's text took the response actions but could
not draw them, so the text lost Copy and Fork. Slot construction now picks the
turn's last reply by the same words the row draws and copies.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(chat): let an image-only response hold a turn's actions when its text is folded

A collapsed turn that ends in an image hides its earlier text, so no drawn row
could show the response actions and Fork vanished. Each turn's actions now go
to its last drawn response with words, else its last with images. Copy and its
context-menu target appear only where there are words to copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Fix Claude fork cuts after local commands

* Extract the conversation copy input contract

* Preserve caller results at Claude fork boundaries

* test: check the copied fork for the wake answer without a type assertion

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-06 02:08:24 -08:00

307 lines
14 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** Build, hash and install probe share this manifest; order determines the hash. Keep erasable-only TypeScript:
* Node build scripts import via type stripping, which rejects enums, namespaces and parameter properties. */
// Bun-era slots only: kept so a client can still launch one for rollback (design D7.1 R5).
export const ORCAD_BUN_RUNTIME_FILENAME = 'bun-runtime'
export const ORCAD_WINDOWS_BUN_RUNTIME_FILENAME = 'bun-runtime.exe'
export const ORCAD_BUILD_TARGET_FILENAME = '.build-target'
export const ORCAD_WINDOWS_PROCESS_TREE_FILENAME = 'windows-process-tree.node'
/** native/windows-security: secure-file ACLs without spawning icacls. */
export const ORCAD_WINDOWS_SECURITY_FILENAME = 'windows-security.node'
/** native/windows-cli-launcher: cmd.exe and .ps1 shims cannot carry every argv intact. */
export const ORCAD_WINDOWS_CLI_LAUNCHER_FILENAME = 'bin/orca.exe'
export function orcadBunRuntimeFilename(target: string): string {
return isWindowsTarget(target) ? ORCAD_WINDOWS_BUN_RUNTIME_FILENAME : ORCAD_BUN_RUNTIME_FILENAME
}
function isWindowsTarget(target: string): boolean {
return target === 'win32' || target.startsWith('win32-')
}
/** A Node slot's server target (e.g. linux-x64-musl); `.build-target` would mark it as Bun. */
export const ORCAD_SERVER_TARGET_FILENAME = '.server-target'
/** The pinned Node executableSha256 enters the version hash here. Never ship .build-target in Node slots:
* Bun-era selectors exit 78 without bun-runtime (design D7.1 R5). */
export const ORCAD_NODE_RUNTIME_MARKER_FILENAME = '.runtime-node'
/** Beside the slot dirs and shared across Orca versions (design D2): `runtimes/node-<sha256>/bin/node`. */
export const ORCAD_RUNTIMES_DIRNAME = 'runtimes'
export const ORCAD_NODE_RUNTIME_DIR_PREFIX = 'node-'
export const ORCAD_NODE_RUNTIME_POSIX_EXECUTABLE = 'bin/node'
// Upstream's own name and layout: renaming node.exe is the masquerading pattern EDR scores.
export const ORCAD_NODE_RUNTIME_WINDOWS_EXECUTABLE = 'node.exe'
export function orcadNodeRuntimeExecutable(target: string): string {
return isWindowsTarget(target)
? ORCAD_NODE_RUNTIME_WINDOWS_EXECUTABLE
: ORCAD_NODE_RUNTIME_POSIX_EXECUTABLE
}
/** Slot-relative path segments of the runtime a slot's marker names. */
export function orcadNodeRuntimeRelativePath(target: string, executableSha256: string): string[] {
return [
'..',
ORCAD_RUNTIMES_DIRNAME,
`${ORCAD_NODE_RUNTIME_DIR_PREFIX}${executableSha256}`,
...orcadNodeRuntimeExecutable(target).split('/')
]
}
/** N-API level the slot addons are built for; equals SLOT_NAPI_VERSION in the prebuild script. */
export const ORCAD_ADDON_NAPI_VERSION = 8
export const ORCAD_NODE_PTY_DIR = 'node_modules/node-pty'
export const ORCAD_CLI_ENTRY_FILENAME = 'out/cli/index.js'
export const ORCAD_CLI_PACKAGE_FILENAME = 'out/package.json'
// Test files and sources stay out; these are every module the runtime path requires.
export const ORCAD_NODE_PTY_JS_ARTIFACTS = [
'package.json',
'lib/conpty_console_list_agent.js',
'lib/eventEmitter2.js',
'lib/index.js',
'lib/interfaces.js',
'lib/shared/conout.js',
'lib/terminal.js',
'lib/types.js',
'lib/unixTerminal.js',
'lib/utils.js',
'lib/windowsConoutConnection.js',
'lib/windowsPtyAgent.js',
'lib/windowsTerminal.js',
'lib/worker/conoutSocketWorker.js'
].map((file) => `${ORCAD_NODE_PTY_DIR}/${file}`)
/** The prebuild slot's files (config/scripts/orcad-prebuild-slot-contents.mjs), relative to build/Release. */
export function orcadNodePtySlotFiles(target: string): string[] {
if (isWindowsTarget(target)) {
return [
'conpty.node',
'conpty_console_list.node',
'conpty/conpty.dll',
'conpty/OpenConsole.exe',
// node-pty's winpty backend, which it selects below Windows build 18309.
'pty.node',
'winpty.dll',
'winpty-agent.exe'
]
}
return target.startsWith('darwin-') ? ['pty.node', 'spawn-helper'] : ['pty.node']
}
export function orcadNodePtyNativeArtifacts(target: string): string[] {
return orcadNodePtySlotFiles(target).map((file) => `${ORCAD_NODE_PTY_DIR}/build/Release/${file}`)
}
export const ORCAD_PARCEL_WATCHER_ENTRY = 'node_modules/@parcel/watcher/index.js'
export const ORCAD_PARCEL_WATCHER_NATIVE = 'node_modules/@parcel/watcher/watcher.node'
export const ORCAD_EMOJI_SHORTCODE_DATASET =
'node_modules/emojibase-data/en/shortcodes/emojibase.json'
// linear-sdk.ts loads it through createRequire, which the server bundle cannot follow.
export const ORCAD_LINEAR_SDK_ENTRY = 'node_modules/@linear/sdk/index.js'
export const ORCAD_VERSION = '0.1.0'
export const ORCAD_LAUNCHER_FILENAME = 'orcad.js'
export const ORCAD_SERVER_ENTRY_FILENAME = 'orcad-server.js'
// Equals FOREIGN_SQLITE_READER_ENTRY_FILENAME; that module is not loadable under type stripping.
export const ORCAD_FOREIGN_SQLITE_READER_ENTRY = 'foreign-sqlite-reader-entry.js'
/** Worker thread that runs workspace port detection's probe commands off the event loop. */
export const ORCAD_PORT_SCAN_COMMAND_WORKER_ENTRY = 'port-scan-command-worker-entry.js'
// Equals AI_VAULT_SERVICE_ENTRY_FILENAME: the forked child that lists agent sessions.
export const ORCAD_SESSION_SCANNER_SERVICE_ENTRY = 'session-scanner-service-entry.js'
// Equals COMPUTER_SIDECAR_ENTRY_FILENAME, and the desktop's out/main entry name.
export const ORCAD_COMPUTER_SIDECAR_ENTRY = 'computer-sidecar.js'
/** Plain scripts, one copy for every target: each platform's sidecar runs only its own. */
export const ORCAD_COMPUTER_USE_RUNTIME_ARTIFACTS = [
'computer-use-linux/runtime.py',
'computer-use-windows/runtime.ps1'
] as const
// Kept here because build-orcad.mjs imports this manifest directly under Node type stripping.
export const ORCAD_RIPGREP_ARTIFACTS = [
'ripgrep/linux-x64/rg',
'ripgrep/linux-arm64/rg',
'ripgrep/darwin-x64/rg',
'ripgrep/darwin-arm64/rg',
'ripgrep/win32-x64/rg.exe',
'ripgrep/win32-arm64/rg.exe'
] as const
/** Only the target's own ripgrep ships (design D2); both libcs share one static build. */
export function orcadRipgrepArtifact(target: string): string {
const [platform, arch] = target.split('-')
const artifact = ORCAD_RIPGREP_ARTIFACTS.find((candidate) =>
candidate.startsWith(`ripgrep/${platform}-${arch}/`)
)
if (!artifact) {
throw new Error(`orcad ships no ripgrep for ${target}`)
}
return artifact
}
/** Packaging-only references; deployed slots still contain their own verified binary. */
export function orcadTemplatePackagedRipgrep(
schemaVersion: number,
target: string,
reference: unknown
): string | null {
if (reference === undefined) {
return null
}
if (schemaVersion !== 4 || reference !== true || target.startsWith('darwin-')) {
throw new Error(`Invalid packaged ripgrep reference for ${target}`)
}
return orcadRipgrepArtifact(target)
}
export const ORCAD_RIPGREP_LICENSE_ARTIFACTS = [
'ripgrep/licenses/JEMALLOC-COPYING',
'ripgrep/licenses/LICENSE-MIT',
'ripgrep/licenses/LLVM-LIBUNWIND-LICENSE.TXT',
'ripgrep/licenses/MUSL-COPYRIGHT',
'ripgrep/licenses/PCRE2-LICENCE.md',
'ripgrep/licenses/README.md',
'ripgrep/licenses/RUST-CRATE-NOTICES.txt',
'ripgrep/licenses/SLJIT-LICENSE',
'ripgrep/licenses/UNLICENSE'
] as const
/** The skill plugin native-chat agents load by path; mirrors resources/native-chat-visuals. */
export const ORCAD_NATIVE_CHAT_VISUALS_ARTIFACTS = [
'native-chat-visuals/.claude-plugin/plugin.json',
'native-chat-visuals/skills/orca-chat-visuals/SKILL.md'
] as const
/** Phones load this page via mobileWeb.bundle.*; its content-addressed assets are listed only in the manifest. */
export const ORCAD_MOBILE_WEB_DIR = 'out/mobile-web'
export const ORCAD_MOBILE_WEB_MANIFEST = `${ORCAD_MOBILE_WEB_DIR}/manifest.json`
// Mirrors manifest-contract ASSET_PATH_PATTERN; cannot import under type stripping.
const MOBILE_WEB_ASSET_PATH = /^[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)*$/
/** A bundle-relative asset path that stays inside the page directory. */
export function isOrcadMobileWebAssetPath(path: string): boolean {
return (
MOBILE_WEB_ASSET_PATH.test(path) &&
!path.split('/').some((segment) => segment === '.' || segment === '..')
)
}
/** Slot paths of every asset `manifestText` lists, sorted; throws rather than ship a partial page. */
export function orcadMobileWebAssetFilenames(manifestText: string): string[] {
const manifest: unknown = JSON.parse(manifestText)
const assets =
manifest && typeof manifest === 'object' && 'assets' in manifest ? manifest.assets : undefined
if (!Array.isArray(assets) || assets.length === 0) {
throw new Error(`${ORCAD_MOBILE_WEB_MANIFEST} lists no assets`)
}
const filenames = assets.map((asset: unknown) => {
const path = asset && typeof asset === 'object' && 'path' in asset ? asset.path : undefined
if (typeof path !== 'string' || !isOrcadMobileWebAssetPath(path)) {
throw new Error(`${ORCAD_MOBILE_WEB_MANIFEST} names an unsafe asset path: ${String(path)}`)
}
return `${ORCAD_MOBILE_WEB_DIR}/${path}`
})
return filenames.sort(compareCodeUnits)
}
/** Code-unit order: page asset lists feed the install hash, so they must not depend on locale. */
export function compareCodeUnits(left: string, right: string): number {
return left < right ? -1 : left > right ? 1 : 0
}
export type OrcadArtifact = {
filename: string
/** Missing optional agent-browser means no headless browser, not a torn install; the remote probe must allow it. */
optional?: boolean
}
export const ORCAD_ARTIFACTS: readonly OrcadArtifact[] = [
{ filename: ORCAD_CLI_ENTRY_FILENAME },
{ filename: ORCAD_CLI_PACKAGE_FILENAME },
{ filename: ORCAD_LAUNCHER_FILENAME },
{ filename: ORCAD_SERVER_ENTRY_FILENAME },
// Forked so a native @parcel/watcher fault kills the child, not the server.
{ filename: 'parcel-watcher-process-entry.js' },
// Forked so PTYs outlive the runtime process; its absence makes every restart destructive.
{ filename: 'daemon-entry.js' },
{ filename: 'profile-state-writer-worker-entry.js' },
{ filename: 'profile-state-backup-worker-entry.js' },
{ filename: 'command-path-directory-worker-entry.js' },
// Worker thread that reads other apps' SQLite (the OpenCode binder and history) off the event loop.
{ filename: ORCAD_FOREIGN_SQLITE_READER_ENTRY },
{ filename: ORCAD_PORT_SCAN_COMMAND_WORKER_ENTRY },
// Forked so transcript parsing stays off the server's event loop; session search stays in-process.
{ filename: ORCAD_SESSION_SCANNER_SERVICE_ENTRY },
// Account worker threads keep CLI probes and Claude setup off the event loop.
{ filename: 'worker-thread-child-process-entry.js' },
{ filename: 'claude-profile-setup-worker-entry.js' },
// Claude fork and rewind copy a transcript in a worker thread, off the event loop.
{ filename: 'claude-conversation-fork-worker-entry.js' },
// Dictation loads the recognizer named by orca serve (#31174).
{ filename: 'stt-worker.js' },
// The forked computer sidecar finds platform runtimes beside itself (#31777).
{ filename: ORCAD_COMPUTER_SIDECAR_ENTRY },
...ORCAD_COMPUTER_USE_RUNTIME_ARTIFACTS.map((filename) => ({ filename })),
// Target-specific even when the JavaScript bundle is shared across packaged slots.
{ filename: ORCAD_SERVER_TARGET_FILENAME },
// orcad never depends on a host runtime or host-installed native module.
{ filename: ORCAD_NODE_RUNTIME_MARKER_FILENAME },
{ filename: ORCAD_PARCEL_WATCHER_ENTRY },
{ filename: ORCAD_PARCEL_WATCHER_NATIVE },
{ filename: ORCAD_EMOJI_SHORTCODE_DATASET },
{ filename: ORCAD_LINEAR_SDK_ENTRY },
...ORCAD_NODE_PTY_JS_ARTIFACTS.map((filename) => ({ filename })),
...ORCAD_RIPGREP_LICENSE_ARTIFACTS.map((filename) => ({ filename })),
...ORCAD_NATIVE_CHAT_VISUALS_ARTIFACTS.map((filename) => ({ filename })),
// Missing page suppresses mobileWeb.bundle.v1, leaving paired phones without a page.
{ filename: ORCAD_MOBILE_WEB_MANIFEST }
]
/** Written after the artifacts, so it is never an input to its own hash. */
export const ORCAD_VERSION_FILENAME = '.version'
export const ORCAD_TEMPLATE_MANIFEST_FILENAME = 'orcad-template.json'
export const ORCAD_TEMPLATE_TARGETS_DIR = 'targets'
/** Written last by the installer; its absence means a torn install. */
export const ORCAD_INSTALL_COMPLETE_FILENAME = '.install-complete'
/** Slot files in hash order for <os>-<arch>[-<libc>]; mobileWebAssets comes from the slot’s own page manifest. */
export function orcadArtifactFilenames(
target: string,
mobileWebAssets: readonly string[]
): string[] {
const filenames = ORCAD_ARTIFACTS.filter((artifact) => !artifact.optional).map(
(artifact) => artifact.filename
)
filenames.push(...orcadNodePtyNativeArtifacts(target), orcadRipgrepArtifact(target))
if (isWindowsTarget(target)) {
filenames.push(
ORCAD_WINDOWS_PROCESS_TREE_FILENAME,
ORCAD_WINDOWS_SECURITY_FILENAME,
ORCAD_WINDOWS_CLI_LAUNCHER_FILENAME
)
}
filenames.push(...mobileWebAssets)
return filenames
}
/** Files shared by every template target; the rest live under `targets/<target>/`. */
export function orcadTemplateCommonFilenames(mobileWebAssets: readonly string[]): string[] {
const filenames = ORCAD_ARTIFACTS.filter(
(artifact) =>
!artifact.optional &&
artifact.filename !== ORCAD_SERVER_TARGET_FILENAME &&
artifact.filename !== ORCAD_NODE_RUNTIME_MARKER_FILENAME &&
artifact.filename !== ORCAD_PARCEL_WATCHER_NATIVE
).map((artifact) => artifact.filename)
filenames.push(...mobileWebAssets)
return filenames
}
/** Files stored under the template's `targets/<target>/`, at their slot-relative paths. */
export function orcadTemplateTargetFilenames(target: string): string[] {
const common = new Set(orcadTemplateCommonFilenames([]))
return orcadArtifactFilenames(target, []).filter((filename) => !common.has(filename))
}