@zgeoff/atc 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/src/cli.ts +24 -1
  3. package/src/client/collect-target-picks.ts +53 -0
  4. package/src/client/dirs.ts +1 -1
  5. package/src/client/spawn-picker.ts +132 -6
  6. package/src/client/ui.ts +6 -1
  7. package/src/daemon/daemon-connection.ts +129 -0
  8. package/src/daemon/daemon-context.ts +23 -0
  9. package/src/daemon/daemon.ts +29 -0
  10. package/src/daemon/materialize-workspace.ts +42 -18
  11. package/src/daemon/require-git-transports.ts +23 -0
  12. package/src/mcp/require-daemon-features.ts +2 -0
  13. package/src/protocol/daemon-features.ts +8 -0
  14. package/src/protocol/protocol.ts +2 -0
  15. package/src/protocol/request-param-schemas.ts +67 -15
  16. package/src/shared/collect-workspaces-config.ts +105 -0
  17. package/src/shared/config.ts +14 -0
  18. package/src/shared/default-git-transports.ts +5 -0
  19. package/src/shared/is-git-url.ts +11 -0
  20. package/src/sources/build-sources.ts +40 -0
  21. package/src/sources/collect-builtin-sources.ts +41 -0
  22. package/src/sources/dirs/build-dirs-source.ts +70 -0
  23. package/src/sources/git/build-git-source.ts +25 -0
  24. package/src/sources/github/build-github-source.ts +113 -0
  25. package/src/sources/github/collect-github-repos.ts +165 -0
  26. package/src/sources/github/find-github-alternate-url.ts +20 -0
  27. package/src/sources/github/read-git-protocol.ts +11 -0
  28. package/src/sources/github/run-gh.ts +66 -0
  29. package/src/sources/types.ts +70 -0
  30. package/src/workspace/check-git-transport.ts +61 -0
  31. package/src/workspace/check-repository-access.ts +108 -0
  32. package/src/workspace/collect-remote-refs.ts +154 -0
  33. package/src/workspace/create-git-askpass.ts +84 -0
  34. package/src/workspace/create-workspace-clone.ts +29 -76
  35. package/src/workspace/expand-git-shorthand.ts +13 -0
  36. package/src/workspace/find-remote-ref.ts +34 -0
  37. package/src/workspace/normalize-git-url.ts +2 -7
  38. package/src/workspace/resolve-git-url.ts +46 -0
  39. package/src/workspace/resolve-path-source.ts +11 -4
  40. package/src/workspace/run-git.ts +52 -4
  41. package/src/workspace/workspace-source.ts +10 -2
  42. /package/src/{client → shared}/collect-root-dirs.ts +0 -0
  43. /package/src/{client → shared}/collect-zoxide-dirs.ts +0 -0
@@ -1,8 +1,16 @@
1
1
  /**
2
2
  * Where a session's workspace comes from: a directory on a host, which is
3
3
  * resolved to a pushed commit before anything leaves that host, or a git
4
- * repository and ref that the control side clones itself.
4
+ * repository and ref, optionally pinned to a commit, that the control side
5
+ * clones itself.
5
6
  */
6
7
  export type WorkspaceSource =
7
8
  | { readonly kind: 'path'; readonly host: string; readonly path: string }
8
- | { readonly kind: 'git'; readonly url: string; readonly ref: string };
9
+ | {
10
+ readonly kind: 'git';
11
+ readonly url: string;
12
+ readonly ref: string;
13
+
14
+ // The commit to check out when the ref only names its branch.
15
+ readonly sha?: string;
16
+ };
File without changes
File without changes