@uxnan/shared 0.0.14-alpha.20260810 → 0.0.15-alpha.20260813
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.
- package/README.md +1 -1
- package/dist/src/jsonrpc/methods.d.ts +17 -1
- package/dist/src/models/git.d.ts +6 -4
- package/dist/src/models/session.d.ts +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|

|
|
4
4
|

|
|
5
5
|

|
|
6
|
-

|
|
7
7
|
|
|
8
8
|
Shared JSON-RPC and E2EE contracts for the [Uxnan](../README.md) ecosystem — the
|
|
9
9
|
single source of truth every component agrees on. Consumed as a local workspace
|
|
@@ -223,7 +223,23 @@ export interface GitBranchParams {
|
|
|
223
223
|
export interface GitWorktreeParams {
|
|
224
224
|
cwd: string;
|
|
225
225
|
branch: string;
|
|
226
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Absolute directory for the new worktree. **Optional**: omit it (with
|
|
228
|
+
* {@link managed}) and the bridge resolves the location itself, from its
|
|
229
|
+
* `worktrees` config — by default the managed root
|
|
230
|
+
* `<home>/uxnan/worktrees/<repo>/<branch>`, the same layout the desktop uses,
|
|
231
|
+
* so both apps group one repository's checkouts in one place.
|
|
232
|
+
*
|
|
233
|
+
* A bridge that does not advertise `features.managedWorktrees` still
|
|
234
|
+
* **requires** this, so a client that wants to work against an older bridge
|
|
235
|
+
* has to keep deriving a path as its fallback.
|
|
236
|
+
*/
|
|
237
|
+
path?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Let the bridge own the location (the default when {@link path} is absent).
|
|
240
|
+
* A managed worktree is recorded in the bridge's registry, so the ones uxnan
|
|
241
|
+
* created can be told from the ones that were already there.
|
|
242
|
+
*/
|
|
227
243
|
managed?: boolean;
|
|
228
244
|
}
|
|
229
245
|
export interface GitRevertParams {
|
package/dist/src/models/git.d.ts
CHANGED
|
@@ -56,10 +56,12 @@ export interface GitWorktreeResult {
|
|
|
56
56
|
/**
|
|
57
57
|
* One entry of `git worktree list --porcelain`.
|
|
58
58
|
*
|
|
59
|
-
* A
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
59
|
+
* A worktree can live anywhere: beside its repository (`../repo-feature`),
|
|
60
|
+
* grouped under the folder uxnan manages (`~/uxnan/worktrees/<repo>/<branch>`),
|
|
61
|
+
* or wherever the user put it. None of those spellings is a child of the main
|
|
62
|
+
* worktree, and the grouped one shares a prefix with worktrees of OTHER
|
|
63
|
+
* repositories — which is precisely why a client cannot infer the hierarchy
|
|
64
|
+
* from paths and has to be told.
|
|
63
65
|
*/
|
|
64
66
|
export interface GitWorktreeEntry {
|
|
65
67
|
/** Absolute path of the worktree. */
|
|
@@ -72,4 +72,17 @@ export interface BridgeFeatures {
|
|
|
72
72
|
* whether it waits there or goes straight through.
|
|
73
73
|
*/
|
|
74
74
|
midTurnDelivery?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The bridge resolves where a worktree goes on its own, so `git/createWorktree`
|
|
77
|
+
* accepts `managed: true` **without** a `path` and places it under the managed
|
|
78
|
+
* root (`<home>/uxnan/worktrees/<repo>/<branch>` by default) — the same layout
|
|
79
|
+
* the desktop uses, so one repository's checkouts stay grouped no matter which
|
|
80
|
+
* app created them.
|
|
81
|
+
*
|
|
82
|
+
* Absent/false → the bridge still **requires** `path`, and a client must keep
|
|
83
|
+
* deriving one itself. That fallback is worth keeping aligned with the
|
|
84
|
+
* desktop's spelling: the two derivations had already drifted into different
|
|
85
|
+
* folder names for the same repository and branch.
|
|
86
|
+
*/
|
|
87
|
+
managedWorktrees?: boolean;
|
|
75
88
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxnan/shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15-alpha.20260813",
|
|
4
4
|
"description": "Shared JSON-RPC and E2EE contracts for the Uxnan ecosystem (bridge, relay, mobile).",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"author": "Luis Donaldo Gamas Vazquez",
|