@hy-sde-org/dsh-fs-archive 0.2.0-rc.2 → 0.2.1-alpha.4
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 +0 -1
- package/package.json +3 -9
- package/dist/invariant.d.ts +0 -16
- package/dist/invariant.d.ts.map +0 -1
- package/dist/invariant.js +0 -23
- package/dist/invariant.js.map +0 -1
package/README.md
CHANGED
|
@@ -11,7 +11,6 @@ Format detection sniffs content signatures (`sniffArchiveFormat`) and falls back
|
|
|
11
11
|
- No `Bun` runtime: `Bun.hash.crc32` is table-driven CRC-32, `Bun.CryptoHasher` is `node:crypto` SHA-256, and `Bun.file` / `Bun.write` are `node:fs` / `node:fs/promises` equivalents.
|
|
12
12
|
- All relative imports carry the `.ts` extension (repo `rewriteRelativeImportExtensions`).
|
|
13
13
|
- `formatBytes`, the small `LRUCache`, and the public `index.ts` surface replace the upstream package-level re-exports; tests load fixtures from one bundled `tar.gz` (the same layout upstream uses to keep checkout state quiet).
|
|
14
|
-
- The optional `./invariant` companion registers the package into a Cordis host's `ctx.invariants` service (no-op); it needs `@deepseek-ai/cordis` + `@deepseek-ai/dsh-invariants` peers only when you use that entry.
|
|
15
14
|
|
|
16
15
|
Otherwise the port is algorithmically 1:1 with the original source. Keep the two sources in sync when the fork backports upstream archive-engine fixes.
|
|
17
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hy-sde-org/dsh-fs-archive",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1-alpha.4",
|
|
4
4
|
"description": "Pure-TS multi-format archive engine (zip/tar/tar.gz/rar/7z/iso/deb/rpm/cpio/cab/arj/asar + codecs), ported from @oh-my-pi/pi-utils (MIT), as a standalone npm package.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -10,10 +10,6 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"default": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
-
"./invariant": {
|
|
14
|
-
"types": "./dist/invariant.d.ts",
|
|
15
|
-
"default": "./dist/invariant.js"
|
|
16
|
-
},
|
|
17
13
|
"./package.json": "./package.json"
|
|
18
14
|
},
|
|
19
15
|
"files": [
|
|
@@ -34,12 +30,10 @@
|
|
|
34
30
|
},
|
|
35
31
|
"license": "MIT",
|
|
36
32
|
"peerDependencies": {
|
|
37
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
38
|
-
"@deepseek-ai/dsh-invariants": "^0.2.0-rc.2"
|
|
33
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.2"
|
|
39
34
|
},
|
|
40
35
|
"devDependencies": {
|
|
41
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
42
|
-
"@deepseek-ai/dsh-invariants": "^0.2.0-rc.2",
|
|
36
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.2",
|
|
43
37
|
"@types/node": "^24.0.0",
|
|
44
38
|
"typescript": "^5.9.3",
|
|
45
39
|
"vitest": "^3.2.7"
|
package/dist/invariant.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@hy-sde-org/dsh-fs-archive`.
|
|
3
|
-
* @module @hy-sde-org/dsh-fs-archive/invariant
|
|
4
|
-
*/
|
|
5
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export declare const name = "fs-archive-invariant";
|
|
8
|
-
/** Service required before the companion can reserve package ownership. */
|
|
9
|
-
export declare const inject: string[];
|
|
10
|
-
/**
|
|
11
|
-
* Register this package's invariant companion.
|
|
12
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
13
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
14
|
-
*/
|
|
15
|
-
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
16
|
-
//# sourceMappingURL=invariant.d.ts.map
|
package/dist/invariant.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invariant.d.ts","sourceRoot":"","sources":["../src/invariant.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,oCAAoC;AACpC,eAAO,MAAM,IAAI,yBAAyB,CAAA;AAC1C,2EAA2E;AAC3E,eAAO,MAAM,MAAM,UAAiB,CAAA;AASpC;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,KAAK,OAAO,KAAG,OAAO,CAAC,MAAM,IAAI,CACU,CAAA"}
|
package/dist/invariant.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@hy-sde-org/dsh-fs-archive`.
|
|
3
|
-
* @module @hy-sde-org/dsh-fs-archive/invariant
|
|
4
|
-
*/
|
|
5
|
-
const PACKAGE_NAME = '@hy-sde-org/dsh-fs-archive';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export const name = 'fs-archive-invariant';
|
|
8
|
-
/** Service required before the companion can reserve package ownership. */
|
|
9
|
-
export const inject = ['invariants'];
|
|
10
|
-
/**
|
|
11
|
-
* No runtime invariant: the archive engine is a pure computation library
|
|
12
|
-
* (open → index → read) with no independent durable state or lifecycle
|
|
13
|
-
* stream; its relations are validated behaviorally by the archive specs.
|
|
14
|
-
*/
|
|
15
|
-
const install = () => { };
|
|
16
|
-
/**
|
|
17
|
-
* Register this package's invariant companion.
|
|
18
|
-
* @param ctx - Cordis context carrying the invariant service.
|
|
19
|
-
* @returns the installed registration's disposer after setup succeeds.
|
|
20
|
-
*/
|
|
21
|
-
export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
22
|
-
/* jscpd:ignore-end */
|
|
23
|
-
//# sourceMappingURL=invariant.js.map
|
package/dist/invariant.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invariant.js","sourceRoot":"","sources":["../src/invariant.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,YAAY,GAAG,4BAA4B,CAAA;AAEjD,oCAAoC;AACpC,MAAM,CAAC,MAAM,IAAI,GAAG,sBAAsB,CAAA;AAC1C,2EAA2E;AAC3E,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,YAAY,CAAC,CAAA;AAEpC;;;;GAIG;AACH,MAAM,OAAO,GAAuB,GAAG,EAAE,GAAE,CAAC,CAAA;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAY,EAAuB,EAAE,CACzD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAA;AACjE,sBAAsB"}
|