mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 19:07:41 +00:00
refactor: organize shared foundation modules by owner (#42914)
This commit is contained in:
@@ -54,7 +54,7 @@ runs:
|
||||
env:
|
||||
NATIVE_RUNTIME: ${{ inputs.native-runtime }}
|
||||
NODE_VERSION: ${{ inputs.node-version }}
|
||||
NATIVE_SOURCE_HASH: ${{ hashFiles('.npmrc', 'config/pnpmfile.cjs', '.github/actions/prepare-native-runtime/action.yml', 'config/scripts/native-build/node-addons/ensure-native-runtime.mjs', 'config/scripts/native-build/windows/initialize-windows-native-toolchain.mjs', 'config/scripts/native-build/windows/capture-windows-native-environment.cmd', 'config/scripts/native-build/node-addons/rebuild-native-deps.mjs', 'config/scripts/native-build/node-addons/node-pty-job-ownership.cjs', 'config/scripts/native-build/windows/windows-pe-machine.cjs', 'config/scripts/native-build/windows/windows-process-tree-gyp-rebuild.mjs', 'config/scripts/native-build/windows/windows-process-tree-creation-time.cjs', 'config/scripts/electron-installation/platform-layout/install-electron-package-binary.mjs', 'config/scripts/electron-installation/platform-layout/electron-platform-path.mjs', 'config/scripts/zip-extractor-command.mjs', 'src/shared/zip-extractor-command.ts', 'config/scripts/electron-installation/shared-dist-cache/shared-electron-dist-cache.mjs', 'config/scripts/artifact-storage/reflink-copy/space-sharing-copy.mjs', 'config/scripts/artifact-storage/atomic-publication/shared-tree-publish.mjs', 'config/scripts/native-build/node-addons/native-build-entry.cjs', 'config/scripts/native-build/node-addons/native-build-entry-probe.cjs', 'config/scripts/native-build/node-addons/shared-native-build.mjs', 'config/scripts/orcad-distribution/prebuilds/orcad-prebuild-node-gyp.mjs', 'config/scripts/native-build/windows/msbuild-file-tracking.mjs', 'config/scripts/native-build/node-addons/native-dependency-lock-digest.mjs', 'config/patches/node-pty@1.1.0.patch', 'config/patches/@vscode__windows-process-tree@0.8.0.patch', 'native/windows-notifications/src/addon.cc', 'native/windows-notifications/binding.gyp', 'native/windows-notifications/package.json', 'native/windows-notifications/index.js', 'native/windows-registry/src/addon.cc', 'native/windows-registry/binding.gyp', 'native/windows-registry/package.json', 'native/windows-registry/index.js', 'native/windows-security/src/addon.cc', 'native/windows-security/src/isolated-spawn.cc', 'native/windows-security/src/isolated-spawn.h', 'native/windows-security/binding.gyp', 'native/windows-security/package.json', 'native/windows-security/index.js') }}
|
||||
NATIVE_SOURCE_HASH: ${{ hashFiles('.npmrc', 'config/pnpmfile.cjs', '.github/actions/prepare-native-runtime/action.yml', 'config/scripts/native-build/node-addons/ensure-native-runtime.mjs', 'config/scripts/native-build/windows/initialize-windows-native-toolchain.mjs', 'config/scripts/native-build/windows/capture-windows-native-environment.cmd', 'config/scripts/native-build/node-addons/rebuild-native-deps.mjs', 'config/scripts/native-build/node-addons/node-pty-job-ownership.cjs', 'config/scripts/native-build/windows/windows-pe-machine.cjs', 'config/scripts/native-build/windows/windows-process-tree-gyp-rebuild.mjs', 'config/scripts/native-build/windows/windows-process-tree-creation-time.cjs', 'config/scripts/electron-installation/platform-layout/install-electron-package-binary.mjs', 'config/scripts/electron-installation/platform-layout/electron-platform-path.mjs', 'config/scripts/zip-extractor-command.mjs', 'src/shared/archives/zip-extractor-command.ts', 'config/scripts/electron-installation/shared-dist-cache/shared-electron-dist-cache.mjs', 'config/scripts/artifact-storage/reflink-copy/space-sharing-copy.mjs', 'config/scripts/artifact-storage/atomic-publication/shared-tree-publish.mjs', 'config/scripts/native-build/node-addons/native-build-entry.cjs', 'config/scripts/native-build/node-addons/native-build-entry-probe.cjs', 'config/scripts/native-build/node-addons/shared-native-build.mjs', 'config/scripts/orcad-distribution/prebuilds/orcad-prebuild-node-gyp.mjs', 'config/scripts/native-build/windows/msbuild-file-tracking.mjs', 'config/scripts/native-build/node-addons/native-dependency-lock-digest.mjs', 'config/patches/node-pty@1.1.0.patch', 'config/patches/@vscode__windows-process-tree@0.8.0.patch', 'native/windows-notifications/src/addon.cc', 'native/windows-notifications/binding.gyp', 'native/windows-notifications/package.json', 'native/windows-notifications/index.js', 'native/windows-registry/src/addon.cc', 'native/windows-registry/binding.gyp', 'native/windows-registry/package.json', 'native/windows-registry/index.js', 'native/windows-security/src/addon.cc', 'native/windows-security/src/isolated-spawn.cc', 'native/windows-security/src/isolated-spawn.h', 'native/windows-security/binding.gyp', 'native/windows-security/package.json', 'native/windows-security/index.js') }}
|
||||
run: |
|
||||
scope="${ImageOS:-$RUNNER_OS}"
|
||||
if [ -r /etc/os-release ]; then
|
||||
|
||||
@@ -51,7 +51,7 @@ on:
|
||||
- 'config/scripts/electron-installation/platform-layout/install-electron-package-binary.mjs'
|
||||
- 'config/scripts/electron-installation/platform-layout/electron-platform-path.mjs'
|
||||
- 'config/scripts/zip-extractor-command.mjs'
|
||||
- 'src/shared/zip-extractor-command.ts'
|
||||
- 'src/shared/archives/zip-extractor-command.ts'
|
||||
- 'config/scripts/electron-installation/shared-dist-cache/shared-electron-dist-cache.mjs'
|
||||
- 'config/scripts/artifact-storage/reflink-copy/space-sharing-copy.mjs'
|
||||
- 'config/patches/**'
|
||||
|
||||
@@ -41,7 +41,7 @@ on:
|
||||
- 'config/scripts/electron-installation/platform-layout/install-electron-package-binary.mjs'
|
||||
- 'config/scripts/electron-installation/platform-layout/electron-platform-path.mjs'
|
||||
- 'config/scripts/zip-extractor-command.mjs'
|
||||
- 'src/shared/zip-extractor-command.ts'
|
||||
- 'src/shared/archives/zip-extractor-command.ts'
|
||||
- 'config/scripts/electron-installation/shared-dist-cache/shared-electron-dist-cache.mjs'
|
||||
- 'config/scripts/artifact-storage/reflink-copy/space-sharing-copy.mjs'
|
||||
- 'config/patches/**'
|
||||
|
||||
@@ -422,7 +422,7 @@ jobs:
|
||||
src/shared/remote-runtime/ephemeral-vm-store/ephemeral-vm-runtime-rollback-projection.ts \
|
||||
src/shared/remote-runtime/ephemeral-vm-store/ephemeral-vm-runtimes.ts \
|
||||
src/shared/remote-runtime/ephemeral-vm-recipes/ephemeral-vm-recipes.ts \
|
||||
src/shared/orca-yaml-hook-types.ts \
|
||||
src/shared/workspace-setup/orca-yaml-hook-types.ts \
|
||||
config/scripts/runtime-verification/ephemeral-store/run-ephemeral-vm-runtime-store-rollback-repro.mjs \
|
||||
config/scripts/runtime-verification/ephemeral-store/ephemeral-vm-runtime-store-cross-version.test.ts \
|
||||
src/main/ephemeral-vm/runtime-service.ts \
|
||||
|
||||
@@ -597,7 +597,7 @@
|
||||
1 src/shared/agent-launch/plugins/opencode/opencode-tui-plugin-install.ts
|
||||
2 src/shared/remote-runtime/orcad-distribution/orcad-build-identity.ts
|
||||
1 src/shared/plugins/declarative/testing/orca-testing.ts
|
||||
2 src/shared/real-path-sync.ts
|
||||
2 src/shared/file-access/real-path-sync.ts
|
||||
1 src/shared/remote-runtime/e2ee/node/remote-runtime-e2ee-v2-host-latch.ts
|
||||
1 src/shared/remote-runtime/host-store/runtime-e2ee-keypair-file.ts
|
||||
1 src/shared/remote-runtime/host-store/runtime-environment-store-records.ts
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@ import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { runProcessSync } from '@orca/process-host'
|
||||
import { getZipExtractorCommand } from '../../../../src/shared/zip-extractor-command.ts'
|
||||
import { getZipExtractorCommand } from '../../../../src/shared/archives/zip-extractor-command.ts'
|
||||
|
||||
const directories = []
|
||||
afterEach(() => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const { writeFileSync } = require('node:fs')
|
||||
const { join } = require('node:path')
|
||||
const compatibilityContract = require('../../../../src/shared/local-build-compatibility-contract.json')
|
||||
const compatibilityContract = require('../../../../src/shared/remote-runtime/orcad-distribution/local-build-compatibility-contract.json')
|
||||
|
||||
const MAC_BUILD_COMPATIBILITY_FILENAME = 'orca-local-build.json'
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ const {
|
||||
} = require('../../macos/terminal-host-bundle/macos-terminal-host-bundle.cjs')
|
||||
const {
|
||||
daemonProtocolVersion
|
||||
} = require('../../../../src/shared/local-build-compatibility-contract.json')
|
||||
} = require('../../../../src/shared/remote-runtime/orcad-distribution/local-build-compatibility-contract.json')
|
||||
|
||||
// Require exact asar-unpacked daemon entry on every platform; missing path indicates layout regression and must not silently skip.
|
||||
function assertPackagedDaemonEntryExists(resourcesDir) {
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import { createRequire } from 'node:module'
|
||||
import { platform as osPlatform, tmpdir } from 'node:os'
|
||||
import { join, resolve } from 'node:path'
|
||||
import { getElectronPlatformPath } from './electron-platform-path.mjs'
|
||||
import { getZipExtractorCommand } from '../../../../src/shared/zip-extractor-command.ts'
|
||||
import { getZipExtractorCommand } from '../../../../src/shared/archives/zip-extractor-command.ts'
|
||||
import { isSharedPackageDir } from '../../native-build/node-addons/native-build-entry.cjs'
|
||||
import {
|
||||
shareElectronDistFromCache,
|
||||
|
||||
@@ -30,7 +30,7 @@ import { runProcessSync } from '@orca/process-host'
|
||||
import {
|
||||
getTarProgram,
|
||||
getZipExtractorCommand
|
||||
} from '../../../../src/shared/zip-extractor-command.ts'
|
||||
} from '../../../../src/shared/archives/zip-extractor-command.ts'
|
||||
|
||||
const root = resolve(import.meta.dirname, '../../../..')
|
||||
const PIN_FILE = join(root, 'src/shared/node-runtime/node-runtime-pin.ts')
|
||||
|
||||
@@ -141,7 +141,9 @@ const importShared = (relativePath) =>
|
||||
const { buildSourceControlTree } = await importShared(
|
||||
'source-control/listing/source-control-tree.ts'
|
||||
)
|
||||
const { normalizeRelativePath, splitPathSegments } = await importShared('cross-platform-path.ts')
|
||||
const { normalizeRelativePath, splitPathSegments } = await importShared(
|
||||
'file-access/cross-platform-path.ts'
|
||||
)
|
||||
const { compareFileNames } = await importShared('file-name-sort.ts')
|
||||
|
||||
const changedEntries = Array.from({ length: CHANGED_FILES }, (_, index) => ({
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ export { createNameFilteredFileExplorerProjection } from './src/renderer/src/com
|
||||
name: 'baseline-dotfile-predicate',
|
||||
setup(builder) {
|
||||
builder.onResolve({ filter: /^(?:\.\.\/)+shared\/cross-platform-path$/ }, () => ({
|
||||
path: resolve('src/shared/cross-platform-path.ts')
|
||||
path: resolve('src/shared/file-access/cross-platform-path.ts')
|
||||
}))
|
||||
builder.onLoad({ filter: /file-explorer-entries\.ts$/ }, () => ({
|
||||
contents: baseline,
|
||||
|
||||
@@ -26,7 +26,7 @@ const {
|
||||
normalizeRuntimePathForComparison,
|
||||
isPathInsideOrEqual,
|
||||
createNormalizedPathInsideOrEqualMatcher
|
||||
} = await jiti.import('../../../../src/shared/cross-platform-path.ts')
|
||||
} = await jiti.import('../../../../src/shared/file-access/cross-platform-path.ts')
|
||||
|
||||
// Historical per-pair normalization model.
|
||||
function routeBefore(roots, events, sink) {
|
||||
|
||||
@@ -16,7 +16,7 @@ import { runProcessSync } from '@orca/process-host'
|
||||
import { describeProcessFailure } from '../../tool-invocation/process-failure-message.mjs'
|
||||
import { isDirectInvocation } from '../../tool-invocation/script-entry-detection.mjs'
|
||||
import { DESKTOP_RC_TAG, DESKTOP_STABLE_TAG } from '../versioning/release-tag-patterns.mjs'
|
||||
import { getTarProgram } from '../../../../src/shared/zip-extractor-command.ts'
|
||||
import { getTarProgram } from '../../../../src/shared/archives/zip-extractor-command.ts'
|
||||
|
||||
const REQUIRED_FILES = [
|
||||
'cli/index.js',
|
||||
|
||||
@@ -74,7 +74,7 @@ const GIT_COMPAT_PREFIXES = [
|
||||
'.github/actions/prepare-git-compatibility/',
|
||||
'src/shared/terminal/pty/lifecycle/git-bash-console-capacity',
|
||||
'src/shared/git/',
|
||||
'src/shared/review-head-tracking-ref',
|
||||
'src/shared/worktree/hosted-review/review-head-tracking-ref',
|
||||
'src/shared/worktree/base-refs/local-base-branch-fast-forward',
|
||||
'src/main/git/',
|
||||
'config/scripts/git-binary-compatibility'
|
||||
@@ -333,7 +333,7 @@ const NATIVE_CACHE_FILES = new Set([
|
||||
'config/scripts/electron-installation/platform-layout/install-electron-package-binary.mjs',
|
||||
'config/scripts/electron-installation/platform-layout/electron-platform-path.mjs',
|
||||
'config/scripts/zip-extractor-command.mjs',
|
||||
'src/shared/zip-extractor-command.ts',
|
||||
'src/shared/archives/zip-extractor-command.ts',
|
||||
'config/scripts/artifact-storage/reflink-copy/space-sharing-copy.mjs',
|
||||
'config/scripts/native-build/node-addons/native-dependency-lock-digest.mjs',
|
||||
'config/scripts/orcad-distribution/prebuilds/orcad-prebuild-node-gyp.mjs',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isPathInsideOrEqual } from '../../../src/shared/cross-platform-path'
|
||||
import { isPathInsideOrEqual } from '../../../src/shared/file-access/cross-platform-path'
|
||||
import { latestSessionConversationTurn } from '../../../src/shared/ai-vault/session-display/ai-vault-session-display'
|
||||
import {
|
||||
aiVaultAgentLabel,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { parseExecutionHostId, type ExecutionHostId } from '../../../src/shared/execution-host'
|
||||
import { findAutomationRepo } from '../../../src/shared/automations/ownership/automation-repo-target'
|
||||
import { getAutomationSetupDefaultDecision } from '../../../src/shared/automations/launch/automation-setup-decision'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../src/shared/orca-yaml-hook-types'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../src/shared/workspace-setup/orca-yaml-hook-types'
|
||||
import {
|
||||
newWorkspaceSetupHooksRead,
|
||||
newWorkspaceUiStateRead
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { parseExecutionHostId, type ExecutionHostId } from '../../../src/shared/execution-host'
|
||||
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'
|
||||
import type { ComponentProps } from 'react'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../src/shared/orca-yaml-hook-types'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../src/shared/workspace-setup/orca-yaml-hook-types'
|
||||
import type {
|
||||
OrcaHookTrustDrawer,
|
||||
OrcaHookTrustPrompt
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isWindowsAbsolutePathLike } from '../../../../src/shared/cross-platform-path'
|
||||
import { isWindowsAbsolutePathLike } from '../../../../src/shared/file-access/cross-platform-path'
|
||||
import { formatImageDropPasteText } from '../../../../src/shared/terminal/input/image-path-paste'
|
||||
import { formatAgentImagePath } from '../../../../src/shared/native-chat/input/composer/agent-image-paste'
|
||||
import { MOBILE_CLIPBOARD_IMAGE_UPLOAD_CHUNK_BASE64_CHARS } from './mobile-clipboard-image-upload-chunk'
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
isWindowsAbsolutePathLike,
|
||||
relativePathInsideRoot,
|
||||
resolveRuntimePath
|
||||
} from '../../../../src/shared/cross-platform-path'
|
||||
} from '../../../../src/shared/file-access/cross-platform-path'
|
||||
import { splitFilePathLineSuffix } from '../../components/markdown/links/markdown-file-path-detection'
|
||||
import {
|
||||
createMobileFilePreviewHref,
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
isWindowsAbsolutePathLike,
|
||||
relativePathInsideRoot,
|
||||
resolveRuntimePath
|
||||
} from '../../../../src/shared/cross-platform-path'
|
||||
} from '../../../../src/shared/file-access/cross-platform-path'
|
||||
import { routeMarkdownHref } from '../../components/markdown/links/markdown-href-routing'
|
||||
import type { MobileFilePreviewRpcSender } from '../preview/mobile-file-preview-operations'
|
||||
import { loadMobileFilePreview } from '../preview/mobile-file-preview-request'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { useCallback, useRef, useState } from 'react'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../src/shared/orca-yaml-hook-types'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../src/shared/workspace-setup/orca-yaml-hook-types'
|
||||
import { ARCHIVE_HOOK_FAILED_REMOVAL_CODE } from '../../../../src/shared/worktree/removal/archive-hook-removal-gate'
|
||||
import type { OrcaHookTrustPrompt } from '../../components/hook-trust/OrcaHookTrustDrawer'
|
||||
import { newWorkspaceUiStateRead } from '../../new-workspace/creation/runtime/new-workspace-operations'
|
||||
import { canUseRepoWideTrust } from '../../../../src/shared/orca-hook-trust-entries'
|
||||
import { canUseRepoWideTrust } from '../../../../src/shared/workspace-setup/hooks/orca-hook-trust-entries'
|
||||
import {
|
||||
persistOrcaHookTrustApproval,
|
||||
wasOrcaHookPreviouslyApproved
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useMemo, useRef, useState } from 'react'
|
||||
import { Keyboard } from 'react-native'
|
||||
import { getComposerRepoWorktreeBranches } from '../../../../../src/shared/composer-branch-selection'
|
||||
import { getComposerRepoWorktreeBranches } from '../../../../../src/shared/new-workspace/composer-branch-selection'
|
||||
import {
|
||||
getRepoExecutionHostId,
|
||||
parseExecutionHostId
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as z from 'zod'
|
||||
import type { SetupRunPolicy } from '../../../../../src/shared/orca-yaml-hook-types'
|
||||
import type { SetupRunPolicy } from '../../../../../src/shared/workspace-setup/orca-yaml-hook-types'
|
||||
import {
|
||||
hostUnionArms,
|
||||
salvagedOptional,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { settingsRead } from '../../../settings/mobile-settings-read-operations'
|
||||
import { useRef, useState, type Dispatch, type SetStateAction } from 'react'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../../src/shared/orca-yaml-hook-types'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../../src/shared/workspace-setup/orca-yaml-hook-types'
|
||||
import type { RetiredNameRegistry } from '../../../../../src/shared/worktree/naming/retired-name-registry'
|
||||
import type { RpcClient } from '../../../transport/rpc/rpc-client-contract'
|
||||
import { folderCreateBusyMessage, uncertainCreateMessage } from './new-workspace-create-copy'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { optionalSettingsRead } from '../../../settings/mobile-settings-read-operations'
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../../src/shared/orca-yaml-hook-types'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../../src/shared/workspace-setup/orca-yaml-hook-types'
|
||||
import type { RpcAcceptedResult } from '../../../transport/rpc/rpc-accepted-result'
|
||||
import type { RpcClient } from '../../../transport/rpc/rpc-client-contract'
|
||||
import type { RpcResponse } from '../../../transport/rpc/rpc-wire-types'
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../src/shared/orca-yaml-hook-types'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../src/shared/workspace-setup/orca-yaml-hook-types'
|
||||
import {
|
||||
canUseRepoWideTrust,
|
||||
type OrcaHookTrustKind,
|
||||
withOrcaHookRepoAlwaysTrusted,
|
||||
withOrcaHookScriptConfirmed
|
||||
} from '../../../../src/shared/orca-hook-trust-entries'
|
||||
} from '../../../../src/shared/workspace-setup/hooks/orca-hook-trust-entries'
|
||||
import type { RpcClient } from '../../transport/rpc/rpc-client-contract'
|
||||
import { taskUiStateWrite } from '../../tasks/screen-state/mobile-task-runtime-operations'
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
} from '../../../../src/shared/new-workspace/workspace-source'
|
||||
|
||||
type JiraIssueSource = Pick<JiraIssue, 'key' | 'title' | 'url'>
|
||||
import { resolveComposerBranchPick as resolveSharedComposerBranchPick } from '../../../../src/shared/composer-branch-selection'
|
||||
import { resolveComposerBranchPick as resolveSharedComposerBranchPick } from '../../../../src/shared/new-workspace/composer-branch-selection'
|
||||
import type {
|
||||
MobileComposerCreateSelection,
|
||||
SmartNameSelection
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { linearIssueReadFailureMessage } from '../../../../src/shared/integration-credential-errors'
|
||||
import { linearIssueReadFailureMessage } from '../../../../src/shared/secure-storage/integration-credential-errors'
|
||||
import type { GitHubWorkItem } from '../../../../src/shared/github/work-items/work-item-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab/gitlab-types'
|
||||
import type { LinearIssue } from '../../../../src/shared/linear/issue-types'
|
||||
import type { BaseRefSearchResult } from '../../../../src/shared/repository/repo-types'
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GitHubWorkItem } from '../../../../src/shared/github/work-items/work-item-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab/gitlab-types'
|
||||
import { normalizeGitHubLinkQuery } from '../../../../src/shared/new-workspace/github-links'
|
||||
import {
|
||||
parseGitHubIssueOrPRLink,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { legacyBaseRefSearchResult } from '../../../../src/shared/base-ref-search-result'
|
||||
import { legacyBaseRefSearchResult } from '../../../../src/shared/worktree/base-refs/base-ref-search-result'
|
||||
import type { GitHubWorkItem } from '../../../../src/shared/github/work-items/work-item-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab/gitlab-types'
|
||||
import type { LinearIssue } from '../../../../src/shared/linear/issue-types'
|
||||
import type { BaseRefSearchResult } from '../../../../src/shared/repository/repo-types'
|
||||
import type { RpcClient } from '../../transport/rpc/rpc-client-contract'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { useCallback, useMemo, useRef, useState } from 'react'
|
||||
import type { GitHubWorkItem } from '../../../../src/shared/github/work-items/work-item-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab/gitlab-types'
|
||||
import type { LinearIssue } from '../../../../src/shared/linear/issue-types'
|
||||
import { resolveComposerManualBranchNameChange } from '../../../../src/shared/composer-branch-selection'
|
||||
import { resolveComposerManualBranchNameChange } from '../../../../src/shared/new-workspace/composer-branch-selection'
|
||||
import { resolveGitHubWorkItemIdentity } from '../../../../src/shared/new-workspace/github-work-item-identity'
|
||||
import { getForkPushWarning } from '../../../../src/shared/new-workspace/fork-push-warning'
|
||||
import type { RpcClient } from '../../transport/rpc/rpc-client-contract'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
import type { GitHubWorkItem } from '../../../../src/shared/github/work-items/work-item-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab-types'
|
||||
import type { GitLabWorkItem } from '../../../../src/shared/gitlab/gitlab-types'
|
||||
import {
|
||||
buildSmartWorkspaceSourceRows,
|
||||
getSmartWorkspaceEmptyHint,
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Platform } from 'react-native'
|
||||
import { File as FsFile } from 'expo-file-system'
|
||||
import { useFocusEffect, useNavigation } from 'expo-router'
|
||||
import { presentPdf } from '../../../modules/orca-mobile-web-shell/src/index'
|
||||
import { getRuntimePathBasename } from '../../../../src/shared/cross-platform-path'
|
||||
import { getRuntimePathBasename } from '../../../../src/shared/file-access/cross-platform-path'
|
||||
import { PDF_MIME_TYPE } from '../../files/media/mobile-file-media'
|
||||
import {
|
||||
downloadMobileFileMedia,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import * as z from 'zod'
|
||||
import { relativePathInsideRoot } from '../../../../../src/shared/cross-platform-path'
|
||||
import { relativePathInsideRoot } from '../../../../../src/shared/file-access/cross-platform-path'
|
||||
import {
|
||||
githubReferenceRepo,
|
||||
type GitHubRepoReference
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import type { NativeChatImageRefBlock } from '../../../../../../src/shared/native-chat/native-chat-types'
|
||||
import { routeNativeChatHref } from '../../../../../../src/shared/native-chat/native-chat-href-routing'
|
||||
import { isRuntimePathAbsolute } from '../../../../../../src/shared/cross-platform-path'
|
||||
import { isRuntimePathAbsolute } from '../../../../../../src/shared/file-access/cross-platform-path'
|
||||
import { isRasterImagePath } from '../../../../../../src/shared/file-preview/file-preview-kind'
|
||||
import { isKnownRasterImageMimeType } from '../../../../../../src/shared/file-preview/raster-image-preview-limits'
|
||||
import { isSvgFilePath } from '../../../../../../src/shared/file-preview/svg-document'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { legacyBaseRefSearchResult } from '../../../../../src/shared/base-ref-search-result'
|
||||
import { legacyBaseRefSearchResult } from '../../../../../src/shared/worktree/base-refs/base-ref-search-result'
|
||||
import { translate } from '../../../i18n/mobile-i18n'
|
||||
import { refusedRpcMessageOrFallback } from '../../../transport/rpc/rpc-refusal-message'
|
||||
import type { UnvalidatedRpcRequestPort } from '../../../transport/rpc/unvalidated-rpc-request-port'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { KeyboardAvoidingView, Pressable, Text, View } from 'react-native'
|
||||
import { Sparkles } from 'lucide-react-native'
|
||||
import { getRuntimePathBasename } from '../../../../../src/shared/cross-platform-path'
|
||||
import { getRuntimePathBasename } from '../../../../../src/shared/file-access/cross-platform-path'
|
||||
import { tuiAgentDisplayName } from '../../../../../src/shared/agent-launch/catalog/tui-agent-display-names'
|
||||
import { useMobileTranslation } from '../../../i18n/use-mobile-translation'
|
||||
import { hostOs } from '../../../platform/host-os'
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
shouldShowTrigger
|
||||
} from '../pull-request/mobile-pr-sidebar-presentation'
|
||||
import { mobileDiffReviewPositionLabel } from '../diff-state/mobile-diff-review-screen-model'
|
||||
import { getRuntimePathBasename } from '../../../../../src/shared/cross-platform-path'
|
||||
import { getRuntimePathBasename } from '../../../../../src/shared/file-access/cross-platform-path'
|
||||
import { mobileDiffReviewStyles as styles } from './mobile-diff-review-screen-styles'
|
||||
import { useMobileColorScheme } from '../../../theme/use-mobile-color-scheme'
|
||||
import type { HostConnectionInputs } from '../../../transport/connection/client-context-connection-metrics'
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import { environmentManager, QueryClientProvider, type QueryClient } from '@tans
|
||||
import { act, create } from 'react-test-renderer'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import type { PRInfo } from '../../../../../src/shared/github/pull-requests/pull-request-types'
|
||||
import type { PRAutoRefreshCadence } from '../../../../../src/shared/review-refresh-policy'
|
||||
import type { PRAutoRefreshCadence } from '../../../../../src/shared/source-control/hosted-review/review-refresh-policy'
|
||||
import { createOrcaQueryClient } from '../../../query/orca-query-client'
|
||||
import { hostQueryKey } from '../../../query/host-query-key'
|
||||
import type { RpcResponse } from '../../../transport/rpc/rpc-wire-types'
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
} from '../../../../../src/shared/github/checks/checks-detail-polling-policy'
|
||||
import type { PRCheckDetail } from '../../../../../src/shared/github/checks/check-types'
|
||||
import type { PRInfo } from '../../../../../src/shared/github/pull-requests/pull-request-types'
|
||||
import type { PRAutoRefreshCadence } from '../../../../../src/shared/review-refresh-policy'
|
||||
import type { PRAutoRefreshCadence } from '../../../../../src/shared/source-control/hosted-review/review-refresh-policy'
|
||||
import { useHostQuery } from '../../../query/host-query'
|
||||
import {
|
||||
NO_SOURCE_CONTROL_SETTINGS_INPUT,
|
||||
|
||||
@@ -6,7 +6,7 @@ import { settingsMember, settingsField } from '../../settings/mobile-settings-pr
|
||||
import {
|
||||
normalizePRAutoRefreshCadence,
|
||||
type PRAutoRefreshCadence
|
||||
} from '../../../../src/shared/review-refresh-policy'
|
||||
} from '../../../../src/shared/source-control/hosted-review/review-refresh-policy'
|
||||
|
||||
export type MobileSourceControlSettings = {
|
||||
groupOrder: SourceControlGroupOrder
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
} from '../../../../src/shared/source-control/checks/gitlab/gitlab-pipeline-checks'
|
||||
import { summarizeProviderChecks } from '../../../../src/shared/source-control/checks/provider-check-summary'
|
||||
import type { ProviderCheckSummary } from '../../../../src/shared/github/pull-requests/pull-request-types'
|
||||
import type { GitLabPipeline } from '../../../../src/shared/gitlab-types'
|
||||
import type { GitLabPipeline } from '../../../../src/shared/gitlab/gitlab-types'
|
||||
|
||||
type GitLabPipelineJobLike = { status: string; allowFailure?: boolean }
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
GitHubProjectViewSummary
|
||||
} from './github-project-reference'
|
||||
import type { GitHubProjectIdentity as GitHubProjectRef } from '../../../../src/shared/github/projects/project-identity'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../src/shared/orca-yaml-hook-types'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../src/shared/workspace-setup/orca-yaml-hook-types'
|
||||
import type { SparsePreset } from '../../../../src/shared/worktree/create-types'
|
||||
import type { WorkspaceAgentChoice } from '../../new-workspace/creation/workspace-agent-selection'
|
||||
import type {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { hashKey, type QueryClient } from '@tanstack/react-query'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../src/shared/orca-yaml-hook-types'
|
||||
import type { PersistedTrustedOrcaHooks } from '../../../../src/shared/workspace-setup/orca-yaml-hook-types'
|
||||
import { defineHostQuery, readHostQueryLive } from '../../query/host-query'
|
||||
import { hostQueryKey, type HostQueryParams } from '../../query/host-query-key'
|
||||
import { holdsRestoredHostQueryData } from '../../query/host-query-persistence'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ClassifiedError } from '../../../../src/shared/classified-error'
|
||||
import type { ClassifiedError } from '../../../../src/shared/errors/classified-error'
|
||||
import { getWorkItemPageErrorTypes } from '../../../../src/shared/github/work-items/work-item-page-errors'
|
||||
import type { RuntimeHydrationModel } from '../screen-state/use-mobile-tasks-runtime-hydration'
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useQueryClient } from '@tanstack/react-query'
|
||||
import { linearIssueReadFailureMessage } from '../../../../src/shared/integration-credential-errors'
|
||||
import { linearIssueReadFailureMessage } from '../../../../src/shared/secure-storage/integration-credential-errors'
|
||||
import type { ProviderLoadActionsModel } from './use-mobile-tasks-provider-load-actions'
|
||||
import { isHostedTaskRepo } from '../repositories/hosted-repo-selection'
|
||||
import { useCallback, useEffect, useLayoutEffect, useRef } from 'react'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { legacyBaseRefSearchResult } from '../../../../src/shared/base-ref-search-result'
|
||||
import { legacyBaseRefSearchResult } from '../../../../src/shared/worktree/base-refs/base-ref-search-result'
|
||||
import type { WorkspaceCreateProjectionModel } from '../project-board/use-mobile-tasks-workspace-create-projection'
|
||||
import type { SparsePreset } from '../../../../src/shared/worktree/create-types'
|
||||
import { useEffect } from 'react'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { WorkspaceSparseActionsModel } from './use-mobile-tasks-workspace-sparse-actions'
|
||||
import { taskRepoClient } from '../repositories/task-repo-host-routing'
|
||||
import { getDefaultSetupDecision } from '../../../../src/shared/orca-hook-setup-config'
|
||||
import { getDefaultSetupDecision } from '../../../../src/shared/workspace-setup/hooks/orca-hook-setup-config'
|
||||
import {
|
||||
normalizeSetupHookTrust,
|
||||
readRepoHooksSetupCommand
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
CLI_GLOBAL_FLAGS,
|
||||
CLI_GLOBAL_VALUE_FLAGS,
|
||||
findCliCommandIndex
|
||||
} from '../../shared/cli-argument-boundary'
|
||||
} from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export type ParsedArgs = {
|
||||
commandPath: string[]
|
||||
|
||||
@@ -3,7 +3,10 @@ import type { GitStatusEntry, GitStatusResult } from '../../shared/git/status/gi
|
||||
import type { RuntimeFileOpenResult } from '../../shared/file-access/runtime-editor-file-open'
|
||||
import type { RuntimeWorktreeRecord } from '../../shared/worktree/catalog/runtime-worktree-contracts'
|
||||
import type { RuntimeNavigationTarget } from '../../shared/remote-runtime/session-graph/runtime-navigation'
|
||||
import { isRuntimePathAbsolute, relativePathInsideRoot } from '../../shared/cross-platform-path'
|
||||
import {
|
||||
isRuntimePathAbsolute,
|
||||
relativePathInsideRoot
|
||||
} from '../../shared/file-access/cross-platform-path'
|
||||
import { isWslUncPath, parseWslUncPath, toWindowsWslPath } from '../../shared/file-access/wsl-paths'
|
||||
import type { CommandHandler, HandlerContext } from '../dispatch/dispatch'
|
||||
import { getOptionalStringFlag, getRequiredStringFlag } from '../arguments/flags'
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ import { existsSync, readFileSync } from 'node:fs'
|
||||
import { join } from 'node:path'
|
||||
import type { CommandHandler } from '../dispatch/dispatch'
|
||||
import { RuntimeClientError } from '../runtime/connection/types'
|
||||
import { parseOrcaYaml } from '../../shared/orca-yaml'
|
||||
import { parseOrcaYaml } from '../../shared/workspace-setup/orca-yaml'
|
||||
import {
|
||||
getEphemeralVmRecipeResultProjectRoot,
|
||||
type EphemeralVmRecipeDoctorCheck,
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
runEphemeralVmRecipeCleanup,
|
||||
runEphemeralVmRecipeStart
|
||||
} from '../../shared/remote-runtime/ephemeral-vm-recipes/ephemeral-vm-recipe-runner'
|
||||
import type { OrcaVmRecipe } from '../../shared/orca-yaml-hook-types'
|
||||
import type { OrcaVmRecipe } from '../../shared/workspace-setup/orca-yaml-hook-types'
|
||||
|
||||
export const VM_HANDLERS: Record<string, CommandHandler> = {
|
||||
'vm recipe doctor': async ({ flags, cwd, json }) => {
|
||||
|
||||
@@ -6,7 +6,7 @@ import { onPluginDevWatchInterrupt, waitUnlessAborted } from './plugin-dev-watch
|
||||
import { RuntimeClientError, RuntimeRpcFailureError } from '../../runtime/connection/types'
|
||||
import { writeStdoutLine } from '../../output/stdout-line'
|
||||
import type { PluginHostListEntry } from '../../../shared/plugins/plugin-list-entry'
|
||||
import { CLI_BOOLEAN_FLAGS } from '../../../shared/cli-argument-boundary'
|
||||
import { CLI_BOOLEAN_FLAGS } from '../../../shared/cli/cli-argument-boundary'
|
||||
import { checkPluginDevFolder } from './plugin-dev-watch-check'
|
||||
import { pluginDevWatchConfirmFor } from './plugin-dev-watch-approval'
|
||||
import { pluginDevWatchShotPanel, type PluginDevWatchShotHost } from './plugin-dev-watch-shot'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const AGENT_LAUNCH_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
const AUTOMATION_TARGET_FLAGS = [
|
||||
'repo',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import { withBrowserPageTarget } from './browser-page-target'
|
||||
|
||||
export const BROWSER_ADVANCED_COMMAND_SPECS: CommandSpec[] = withBrowserPageTarget([
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import { withBrowserPageTarget } from './browser-page-target'
|
||||
import { BROWSER_WAIT_DEFAULT_TIMEOUT_MS } from '../../shared/browser/automation/browser-wait-timeout'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const CHAT_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import {
|
||||
COMPUTER_WAIT_DEFAULT_TIMEOUT_MS,
|
||||
COMPUTER_WAIT_MAX_TIMEOUT_MS
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
const CONNECTOR_NOTES = [
|
||||
'Development only: drives the connector seam as a `dev` conversation, without Orca Cloud. The host refuses it unless its experimentalConnectors setting is on.',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import { WORKTREE_LISTING_SCOPE_NOTES } from './worktree-listing-scope-notes'
|
||||
import { WORKTREE_CREATE_COMMAND_SPEC } from './worktree-create'
|
||||
import { WORKTREE_SET_COMMAND_SPEC } from './worktree-set'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const DIAGNOSTICS_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const EMULATOR_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import { LOCAL_COMMAND_FLAGS } from '../arguments/args'
|
||||
|
||||
export const ENVIRONMENT_COMMAND_SPECS: CommandSpec[] = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const FILE_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
const SITE_FLAGS = [...GLOBAL_FLAGS, 'site']
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const LINEAR_MCP_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import { LINEAR_MCP_COMMAND_SPECS } from './linear-mcp'
|
||||
|
||||
export const LINEAR_COMMAND_SPECS: CommandSpec[] = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
|
||||
export const ORCHESTRATION_GATE_COMMAND_SPECS: CommandSpec[] = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
|
||||
export const ORCHESTRATION_WORKER_COMMAND_SPECS: CommandSpec[] = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { ORCHESTRATION_GATE_COMMAND_SPECS } from './orchestration-gate-specs'
|
||||
import { ORCHESTRATION_WORKER_COMMAND_SPECS } from './orchestration-worker-specs'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const PAIR_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
/** `orca plugin dev hook`; listed in PLUGIN_RUNTIME_COMMAND_SPECS. */
|
||||
export const PLUGIN_DEV_HOOK_COMMAND_SPEC: CommandSpec = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
const EXIT_CODES_NOTE =
|
||||
'Exit codes: 0 ok, 1 error, 3 approval is needed (approval_required or approval_stale).'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
/** Showing and capturing a plugin's UI in the Orca desktop app, so an agent can see what it built. */
|
||||
export const PLUGIN_VIEW_COMMAND_SPECS: CommandSpec[] = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import { LOCAL_COMMAND_FLAGS } from '../arguments/args'
|
||||
import { PLUGIN_TEMPLATE_NAMES } from '../plugins/authoring/plugin-template-names'
|
||||
import { PLUGIN_DEV_HOOK_COMMAND_SPEC, PLUGIN_DEV_REQUEST_COMMAND_SPEC } from './plugin-dev-request'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const PORTS_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const PROJECT_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const REFERENCE_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const REPO_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
|
||||
// Status is a flag because a subcommand would collide with searching for the word "status".
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const SKILL_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const SPEECH_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const TERMINAL_CLOSE_COMMAND_SPEC: CommandSpec = {
|
||||
path: ['terminal', 'close'],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const TERMINAL_DAEMON_COMMAND_SPECS: CommandSpec[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const TERMINAL_SEND_COMMAND_SPEC: CommandSpec = {
|
||||
path: ['terminal', 'send'],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const TERMINAL_SET_PANE_TITLE_COMMAND_SPEC: CommandSpec = {
|
||||
path: ['terminal', 'set-pane-title'],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
const HOST_NOTE =
|
||||
'Runs on the Orca that owns the repos: this computer by default, or a paired server with --environment or --pairing-code. Rules are set in Orca settings; these commands never change them.'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const WORKTREE_CREATE_COMMAND_SPEC: CommandSpec = {
|
||||
path: ['worktree', 'create'],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { CommandSpec } from '../discovery/command-spec'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli-argument-boundary'
|
||||
import { CLI_GLOBAL_FLAGS as GLOBAL_FLAGS } from '../../shared/cli/cli-argument-boundary'
|
||||
|
||||
export const WORKTREE_SET_COMMAND_SPEC: CommandSpec = {
|
||||
path: ['worktree', 'set'],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { normalizeRuntimePathForComparison } from '../../shared/cross-platform-path'
|
||||
import { normalizeRuntimePathForComparison } from '../../shared/file-access/cross-platform-path'
|
||||
import type { FolderWorkspace } from '../../shared/folder-workspaces/folder-workspace-types'
|
||||
import type { RuntimeStatus } from '../../shared/remote-runtime/session-graph/runtime-session-contracts'
|
||||
import type { RuntimeWorktreeRecord } from '../../shared/worktree/catalog/runtime-worktree-contracts'
|
||||
|
||||
@@ -2,9 +2,9 @@ import { resolve as resolvePath } from 'node:path'
|
||||
import {
|
||||
isPathInsideOrEqual,
|
||||
normalizeRuntimePathForComparison
|
||||
} from '../../shared/cross-platform-path'
|
||||
} from '../../shared/file-access/cross-platform-path'
|
||||
import { LOCAL_EXECUTION_HOST_ID, type ExecutionHostId } from '../../shared/execution-host'
|
||||
import { resolveRealPathSync } from '../../shared/real-path-sync'
|
||||
import { resolveRealPathSync } from '../../shared/file-access/real-path-sync'
|
||||
|
||||
// One CLI process is one command, so the folder prefilter and ranking share each resolution.
|
||||
const realPaths = new Map<string, string>()
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { RuntimeWorktreeListResult } from '../../shared/worktree/catalog/ru
|
||||
import {
|
||||
isWslUncPathForCallerLinuxPath,
|
||||
isWslUncPathForLinuxMountedPath
|
||||
} from '../../shared/cross-platform-path'
|
||||
} from '../../shared/file-access/cross-platform-path'
|
||||
import { parseWslUncPath } from '../../shared/file-access/wsl-paths'
|
||||
import type { RuntimeClient } from '../runtime/client'
|
||||
import { RuntimeClientError, RuntimeRpcFailureError } from '../runtime/connection/types'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { formatBytes } from '../../shared/format-bytes'
|
||||
import { formatBytes } from '../../shared/text/format-bytes'
|
||||
import { terminalSafeLine } from '../../shared/terminal/output/terminal-safe-text'
|
||||
import type {
|
||||
WorkspaceCleanupEvaluation,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { readObservedFileSync as readFileSync } from '../../../filesystem/file-content-observation'
|
||||
|
||||
import { isDefinitiveAbsence } from '../../../../shared/definitive-filesystem-absence'
|
||||
import { isDefinitiveAbsence } from '../../../../shared/errors/definitive-filesystem-absence'
|
||||
import type { HooksConfig } from './hook-config-schema'
|
||||
|
||||
export function isPlainObject(value: unknown): value is Record<string, unknown> {
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
isRuntimePathAbsolute,
|
||||
normalizeRuntimePathForComparison,
|
||||
resolveRuntimePath
|
||||
} from '../../../shared/cross-platform-path'
|
||||
} from '../../../shared/file-access/cross-platform-path'
|
||||
import { isFolderRepo } from '../../../shared/repository/repo-kind'
|
||||
import { resolveConfiguredWorktreeBasePaths } from '../../../shared/worktree/paths/configured-worktree-base-path'
|
||||
import { buildKnownOrcaWorkspaceLayouts } from '../../../shared/worktree/visibility/ownership'
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { TranscriptSessionIdentity } from '../../ai-vault/transcripts/sessi
|
||||
import type { SessionFileCandidate } from '../../ai-vault/session-scanner-types'
|
||||
import type SyncDatabase from '../../sqlite/sync-database'
|
||||
import { EMPTY_CONTENT_HASH, type SessionContentHash } from './session-search-content-hash'
|
||||
import { normalizeRuntimePathForComparison } from '../../../shared/cross-platform-path'
|
||||
import { normalizeRuntimePathForComparison } from '../../../shared/file-access/cross-platform-path'
|
||||
|
||||
/** Use the sidebar’s path normalization so indexed cwd keys join its folder groups. */
|
||||
export function cwdKey(cwd: string | null): string | null {
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
normalizeExecutionHostId,
|
||||
type ExecutionHostId
|
||||
} from '../../../shared/execution-host'
|
||||
import { isPathInsideOrEqual } from '../../../shared/cross-platform-path'
|
||||
import { isPathInsideOrEqual } from '../../../shared/file-access/cross-platform-path'
|
||||
import {
|
||||
AI_VAULT_AGENT_SOURCES,
|
||||
sessionRowRootDirs
|
||||
|
||||
@@ -3,7 +3,7 @@ import type {
|
||||
AiVaultDeleteSessionResult,
|
||||
AiVaultSessionDeleteRemoval
|
||||
} from '../../../shared/ai-vault/contracts/ai-vault-session-deletion'
|
||||
import { isPathInsideOrEqual } from '../../../shared/cross-platform-path'
|
||||
import { isPathInsideOrEqual } from '../../../shared/file-access/cross-platform-path'
|
||||
import {
|
||||
validateAiVaultSessionDeleteTarget,
|
||||
type ValidateAiVaultSessionDeleteTargetArgs
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user