@getpaseo/protocol 0.1.96 → 0.1.97-beta.1

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.
@@ -0,0 +1,2 @@
1
+ export declare function terminalSubscriptionKey(cwd: string, workspaceId: string | undefined): string;
2
+ //# sourceMappingURL=terminal-subscription-key.d.ts.map
@@ -0,0 +1,9 @@
1
+ // A terminal directory subscription is scoped to a (cwd, workspaceId) pair, not
2
+ // cwd alone: under Model B two workspaces can share a cwd, and each must track
3
+ // and tear down its own live subscription without disturbing the other. An
4
+ // absent workspaceId (old clients) keys to the cwd on its own. The `::`
5
+ // separator cannot collide with a workspace id, which is always `wks_<hex>`.
6
+ export function terminalSubscriptionKey(cwd, workspaceId) {
7
+ return workspaceId === undefined ? cwd : `${workspaceId}::${cwd}`;
8
+ }
9
+ //# sourceMappingURL=terminal-subscription-key.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/protocol",
3
- "version": "0.1.96",
3
+ "version": "0.1.97-beta.1",
4
4
  "description": "Paseo shared protocol schemas and wire types",
5
5
  "files": [
6
6
  "dist",