@lemoncat7/dsh-ssh 1.10.0 → 1.10.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,6 @@
1
+ /** Coalesce concurrent reads only. Do not cache access decisions or stale data. */
2
+ export declare function createSharedRead<T>(read: () => Promise<T>): {
3
+ read(): Promise<T>;
4
+ invalidate(): void;
5
+ };
6
+ //# sourceMappingURL=shared-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-read.d.ts","sourceRoot":"","sources":["../src/shared-read.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG;IAAE,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IAAC,UAAU,IAAI,IAAI,CAAA;CAAE,CAatG"}
@@ -0,0 +1,18 @@
1
+ /** Coalesce concurrent reads only. Do not cache access decisions or stale data. */
2
+ export function createSharedRead(read) {
3
+ let pending;
4
+ return {
5
+ read() {
6
+ if (pending)
7
+ return pending;
8
+ const request = Promise.resolve().then(read);
9
+ pending = request;
10
+ const clear = () => { if (pending === request)
11
+ pending = undefined; };
12
+ void request.then(clear, clear);
13
+ return request;
14
+ },
15
+ invalidate() { pending = undefined; },
16
+ };
17
+ }
18
+ //# sourceMappingURL=shared-read.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-read.js","sourceRoot":"","sources":["../src/shared-read.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,UAAU,gBAAgB,CAAI,IAAsB;IACxD,IAAI,OAA+B,CAAA;IACnC,OAAO;QACL,IAAI;YACF,IAAI,OAAO;gBAAE,OAAO,OAAO,CAAA;YAC3B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAC5C,OAAO,GAAG,OAAO,CAAA;YACjB,MAAM,KAAK,GAAG,GAAS,EAAE,GAAG,IAAI,OAAO,KAAK,OAAO;gBAAE,OAAO,GAAG,SAAS,CAAA,CAAC,CAAC,CAAA;YAC1E,KAAK,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;YAC/B,OAAO,OAAO,CAAA;QAChB,CAAC;QACD,UAAU,KAAK,OAAO,GAAG,SAAS,CAAA,CAAC,CAAC;KACrC,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemoncat7/dsh-ssh",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Secure SSH, FTP/FTPS/SFTP file transfer, browser terminals, proxies, port forwarding, and session-scoped AI access for DeepSeek Harness",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -40,7 +40,7 @@
40
40
  "ARCHITECTURE.md",
41
41
  "docs/**/*.md",
42
42
  "LICENSE",
43
- "docs/releases/1.10.0.md"
43
+ "docs/releases/1.10.1.md"
44
44
  ],
45
45
  "dsh": {
46
46
  "bundle": {