Ports main's features onto the V2 orchestrator and wire protocol: - HTTP snapshot loading (#3719): new OrchestrationV2ThreadDetailSnapshot contract, /api/orchestration/{shell,threads/:threadId} endpoints served from the V2 engine (orchestration-v2/http.ts), afterSequence resume on the V2 subscribeShell/subscribeThread WS methods, and V2-typed client snapshot loaders wired into shell/thread sync with warm-cache resume. - Thread cache now persists the snapshot sequence (cache schema v3) so warm caches resume via afterSequence instead of refetching. - Mobile: main's react-navigation architecture retained; branch's V2 surfaces (relationships banner, queue control, activity inspector, work-log thread links, fork-from-run) ported off expo-router; thread status presentation and awareness diagnostics mapped to V2 runtime fields; pending-task start-turn helper gains creationSource "mobile". - Retired v1-only additions from main (v1 RPC schemas, session/latestTurn awareness heuristics, v1 engine test updates) where the branch already replaced those systems with V2 equivalents. Co-Authored-By: Claude Fable 5 <[email protected]>
128 lines
3.7 KiB
TypeScript
128 lines
3.7 KiB
TypeScript
import "vite-plus/test/config";
|
|
import { defineConfig } from "vite-plus";
|
|
import * as NodeURL from "node:url";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"~": NodeURL.fileURLToPath(new URL("./apps/web/src", import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
exclude: [
|
|
"**/.repos/**",
|
|
"**/.t3/**",
|
|
"**/node_modules/**",
|
|
"**/dist/**",
|
|
"**/dist-electron/**",
|
|
"**/.{idea,git,cache,output,temp}/**",
|
|
],
|
|
hookTimeout: 60_000,
|
|
testTimeout: 60_000,
|
|
},
|
|
staged: {
|
|
// Formatter only for now — no lint or typecheck on commit.
|
|
"*": "vp fmt",
|
|
},
|
|
fmt: {
|
|
ignorePatterns: [
|
|
".reference",
|
|
".repos/**",
|
|
".plans",
|
|
".alchemy",
|
|
"dist",
|
|
"dist-electron",
|
|
"node_modules",
|
|
"pnpm-lock.yaml",
|
|
"*.tsbuildinfo",
|
|
"**/routeTree.gen.ts",
|
|
"apps/mobile/android/**",
|
|
"apps/mobile/ios/**",
|
|
"apps/web/public/mockServiceWorker.js",
|
|
"apps/web/src/lib/vendor/qrcodegen.ts",
|
|
"apps/mobile/uniwind-types.d.ts",
|
|
"*.icon/**",
|
|
],
|
|
sortPackageJson: {},
|
|
overrides: [
|
|
{
|
|
files: [".devcontainer/devcontainer.json"],
|
|
options: {
|
|
trailingComma: "none",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
lint: {
|
|
ignorePatterns: [
|
|
".repos",
|
|
".repos/**",
|
|
"dist",
|
|
"dist-electron",
|
|
"node_modules",
|
|
"pnpm-lock.yaml",
|
|
"*.tsbuildinfo",
|
|
"**/routeTree.gen.ts",
|
|
"apps/mobile/android/**",
|
|
"apps/mobile/ios/**",
|
|
"apps/mobile/uniwind-types.d.ts",
|
|
],
|
|
plugins: ["eslint", "oxc", "react", "unicorn", "typescript"],
|
|
jsPlugins: ["./oxlint-plugin-t3code/index.ts"],
|
|
categories: {
|
|
correctness: "warn",
|
|
suspicious: "warn",
|
|
perf: "warn",
|
|
},
|
|
rules: {
|
|
"unicorn/no-array-sort": "off",
|
|
"unicorn/consistent-function-scoping": "off",
|
|
"oxc/no-map-spread": "off",
|
|
"react-in-jsx-scope": "off",
|
|
"react-hooks/exhaustive-deps": "off",
|
|
"eslint/no-shadow": "off",
|
|
"eslint/no-await-in-loop": "off",
|
|
"eslint/no-underscore-dangle": "off",
|
|
"typescript/consistent-return": "off",
|
|
"typescript/no-base-to-string": "off",
|
|
"typescript/no-duplicate-type-constituents": "off",
|
|
"typescript/no-floating-promises": "off",
|
|
"typescript/no-implied-eval": "off",
|
|
"typescript/no-meaningless-void-operator": "off",
|
|
"typescript/no-redundant-type-constituents": "off",
|
|
"typescript/no-unnecessary-boolean-literal-compare": "off",
|
|
"typescript/no-unnecessary-type-conversion": "off",
|
|
"typescript/no-unnecessary-type-arguments": "off",
|
|
"typescript/no-unnecessary-type-assertion": "off",
|
|
"typescript/no-unnecessary-type-parameters": "off",
|
|
"typescript/no-unsafe-type-assertion": "off",
|
|
"typescript/await-thenable": "off",
|
|
"typescript/require-array-sort-compare": "off",
|
|
"typescript/restrict-template-expressions": "off",
|
|
"typescript/unbound-method": "off",
|
|
"eslint/no-restricted-imports": [
|
|
"error",
|
|
{
|
|
paths: [
|
|
{
|
|
name: "@t3tools/client-runtime",
|
|
message:
|
|
"Import from an explicit @t3tools/client-runtime/* subpath. The package has no root export.",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
"t3code/no-global-process-runtime": "error",
|
|
"t3code/no-inline-schema-compile": "warn",
|
|
"t3code/no-manual-effect-runtime-in-tests": "error",
|
|
"t3code/namespace-node-imports": "error",
|
|
},
|
|
options: {
|
|
// Revisit once Oxlint's tsgolint path can integrate with @effect/tsgo diagnostics.
|
|
typeAware: false,
|
|
typeCheck: false,
|
|
},
|
|
},
|
|
});
|