Files
t3code/packages/shared/package.json
T
Theo BrowneandClaude Opus 5 02594421d2 Simplify dev tooling after review
Four parallel cleanup reviews over the branch; the fixes that survived
verification:

- scripts/lib/dev-share.ts was a 216-line reimplementation of
  @t3tools/tailscale (the client the server's own --tailscale-serve
  uses). Now a thin wrapper adding only the dev-share semantics: the
  stale-mapping pre-clear and the cleared/not-cleared result. Picks up
  Windows tailscale.exe handling and command timeouts for free. The
  package's exit error gains a bounded stderrPreview so callers can
  recognize "handler does not exist" without a parallel spawner.
- The .git-is-a-file worktree check existed three times across two
  packages; now once in @t3tools/shared/devHome. dev-runner drops its
  duplicated T3CODE_HOME fallback so base-dir precedence lives in one
  function.
- The dev proxied-prefix list existed in apps/web's vite config and
  apps/server's http catch-all with nothing keeping them in sync; both
  now consume @t3tools/shared/devProxy. The vite proxy map is built
  from the list.
- PROJECTOR_NAMES and the projection-table delete order were pasted in
  both seeding scripts; now shared via scripts/lib/projection-tables.
- PairingGrantStore keyed the dev startup TTL by string-comparing the
  caller's subject; issueOneTimeToken takes an explicit
  purpose: "startup" instead, and the subject constant returns to
  EnvironmentAuth where its other uses live.
- dev-seed: iterate rows instead of materializing (unbounded copies
  held the whole table in memory and the spread had a ~128k-element
  ceiling); parameterized IN lists replace hand-rolled quoting.
- Smaller: cli/auth's layer stack deduped into environmentAuthLayer,
  Set-based dedupe, precomputed proxied prefixes, vite HOST parsed
  once, dead T3CODE_DEV_SHARE_URL removed, redundant tests dropped.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-07-25 21:45:24 -07:00

226 lines
5.7 KiB
JSON

{
"name": "@t3tools/shared",
"private": true,
"type": "module",
"exports": {
"./projectFavicon": {
"types": "./src/projectFavicon.ts",
"import": "./src/projectFavicon.ts"
},
"./model": {
"types": "./src/model.ts",
"import": "./src/model.ts"
},
"./advertisedEndpoint": {
"types": "./src/advertisedEndpoint.ts",
"import": "./src/advertisedEndpoint.ts"
},
"./agentAwareness": {
"types": "./src/agentAwareness.ts",
"import": "./src/agentAwareness.ts"
},
"./git": {
"types": "./src/git.ts",
"import": "./src/git.ts"
},
"./sourceControl": {
"types": "./src/sourceControl.ts",
"import": "./src/sourceControl.ts"
},
"./logging": {
"types": "./src/logging.ts",
"import": "./src/logging.ts"
},
"./observability": {
"types": "./src/observability.ts",
"import": "./src/observability.ts"
},
"./httpObservability": {
"types": "./src/httpObservability.ts",
"import": "./src/httpObservability.ts"
},
"./shell": {
"types": "./src/shell.ts",
"import": "./src/shell.ts"
},
"./semver": {
"types": "./src/semver.ts",
"import": "./src/semver.ts"
},
"./Net": {
"types": "./src/Net.ts",
"import": "./src/Net.ts"
},
"./DrainableWorker": {
"types": "./src/DrainableWorker.ts",
"import": "./src/DrainableWorker.ts"
},
"./KeyedCoalescingWorker": {
"types": "./src/KeyedCoalescingWorker.ts",
"import": "./src/KeyedCoalescingWorker.ts"
},
"./schemaJson": {
"types": "./src/schemaJson.ts",
"import": "./src/schemaJson.ts"
},
"./schemaYaml": {
"types": "./src/schemaYaml.ts",
"import": "./src/schemaYaml.ts"
},
"./toolActivity": {
"types": "./src/toolActivity.ts",
"import": "./src/toolActivity.ts"
},
"./Struct": {
"types": "./src/Struct.ts",
"import": "./src/Struct.ts"
},
"./serverSettings": {
"types": "./src/serverSettings.ts",
"import": "./src/serverSettings.ts"
},
"./String": {
"types": "./src/String.ts",
"import": "./src/String.ts"
},
"./projectScripts": {
"types": "./src/projectScripts.ts",
"import": "./src/projectScripts.ts"
},
"./t3ProjectFile": {
"types": "./src/t3ProjectFile.ts",
"import": "./src/t3ProjectFile.ts"
},
"./orchestrationTiming": {
"types": "./src/orchestrationTiming.ts",
"import": "./src/orchestrationTiming.ts"
},
"./remote": {
"types": "./src/remote.ts",
"import": "./src/remote.ts"
},
"./relaySigning": {
"types": "./src/relaySigning.ts",
"import": "./src/relaySigning.ts"
},
"./dpop": {
"types": "./src/dpop.ts",
"import": "./src/dpop.ts"
},
"./dpopCommon": {
"types": "./src/dpopCommon.ts",
"import": "./src/dpopCommon.ts"
},
"./relayAuth": {
"types": "./src/relayAuth.ts",
"import": "./src/relayAuth.ts"
},
"./relayUrl": {
"types": "./src/relayUrl.ts",
"import": "./src/relayUrl.ts"
},
"./relayJwt": {
"types": "./src/relayJwt.ts",
"import": "./src/relayJwt.ts"
},
"./oauthScope": {
"types": "./src/oauthScope.ts",
"import": "./src/oauthScope.ts"
},
"./searchRanking": {
"types": "./src/searchRanking.ts",
"import": "./src/searchRanking.ts"
},
"./qrCode": {
"types": "./src/qrCode.ts",
"import": "./src/qrCode.ts"
},
"./cliArgs": {
"types": "./src/cliArgs.ts",
"import": "./src/cliArgs.ts"
},
"./connectAuth": {
"types": "./src/connectAuth.ts",
"import": "./src/connectAuth.ts"
},
"./path": {
"types": "./src/path.ts",
"import": "./src/path.ts"
},
"./keybindings": {
"types": "./src/keybindings.ts",
"import": "./src/keybindings.ts"
},
"./composerTrigger": {
"types": "./src/composerTrigger.ts",
"import": "./src/composerTrigger.ts"
},
"./composerInlineTokens": {
"types": "./src/composerInlineTokens.ts",
"import": "./src/composerInlineTokens.ts"
},
"./terminalLabels": {
"types": "./src/terminalLabels.ts",
"import": "./src/terminalLabels.ts"
},
"./relayClient": {
"types": "./src/relayClient.ts",
"import": "./src/relayClient.ts"
},
"./relayTracing": {
"types": "./src/relayTracing.ts",
"import": "./src/relayTracing.ts"
},
"./preview": {
"types": "./src/preview.ts",
"import": "./src/preview.ts"
},
"./previewViewport": {
"types": "./src/previewViewport.ts",
"import": "./src/previewViewport.ts"
},
"./filePreview": {
"types": "./src/filePreview.ts",
"import": "./src/filePreview.ts"
},
"./chatList": {
"types": "./src/chatList.ts",
"import": "./src/chatList.ts"
},
"./hostProcess": {
"types": "./src/hostProcess.ts",
"import": "./src/hostProcess.ts"
},
"./httpReadiness": {
"types": "./src/httpReadiness.ts",
"import": "./src/httpReadiness.ts"
},
"./devHome": {
"types": "./src/devHome.ts",
"import": "./src/devHome.ts"
},
"./devProxy": {
"types": "./src/devProxy.ts",
"import": "./src/devProxy.ts"
}
},
"scripts": {
"typecheck": "tsgo --noEmit",
"test": "vp test run"
},
"dependencies": {
"@noble/curves": "catalog:",
"@noble/hashes": "catalog:",
"@t3tools/contracts": "workspace:*",
"effect": "catalog:",
"jose": "catalog:",
"yaml": "catalog:"
},
"devDependencies": {
"@effect/platform-node": "catalog:",
"@effect/vitest": "catalog:",
"@types/node": "catalog:",
"vite-plus": "catalog:"
}
}