@unbrained/pm-cli 2026.12.1 → 2026.12.3
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/.claude-plugin/marketplace.json +1 -1
- package/dist/cli/commander-usage.js +4 -4
- package/dist/cli/expected-revisions.js +1 -1
- package/dist/cli/extension-command-help.js +4 -4
- package/dist/cli/main.js +5 -5
- package/dist/cli/runtime/invocation-rewrites.js +1 -1
- package/dist/cli/runtime-field-commands.js +2 -0
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-3ESBFEQC.js +2 -0
- package/dist/cli-bundle/chunks/chunk-46AZP5QW.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-OBPO6V7H.js → chunk-5WTBF4M4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3KEMIPKG.js → chunk-6TOZQ5BQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4YYFY33T.js → chunk-AHVOEE7F.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-CQHB3ZZH.js +2 -0
- package/dist/cli-bundle/chunks/chunk-DZPOS3YT.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-OKEJ4U2I.js → chunk-E5ADC3HT.js} +65 -65
- package/dist/cli-bundle/chunks/{chunk-SY5C3U32.js → chunk-E5HO7HWP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3HKPVOAN.js → chunk-EDJ3KR2H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XME6GIFQ.js → chunk-FWQNWPIV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CWPR234D.js → chunk-H4U3LEOD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MZZ4ZJ5Z.js → chunk-HNMED75Y.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-U7RBJGLF.js → chunk-HPCMM74Q.js} +22 -22
- package/dist/cli-bundle/chunks/{chunk-WSEIEDEK.js → chunk-ITM4AMVM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q6K7HWZ7.js → chunk-IW4A3I4N.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4YQMQOUO.js → chunk-JJ73G5UT.js} +52 -52
- package/dist/cli-bundle/chunks/chunk-L4HMFRHB.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-YSVOXCYH.js → chunk-LTQWPQ7H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q6GLSAJY.js → chunk-MRT3ADO4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZL6J6JYT.js → chunk-PBMLIV74.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NA6D75V5.js → chunk-PJMGWJKU.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-Q2HMDV56.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-OXC5KBIQ.js → chunk-RRBNCL63.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CBUC4X7Q.js → chunk-TDOF7BKO.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-UXEZXGAD.js +113 -0
- package/dist/cli-bundle/chunks/{chunk-PCDTWL6V.js → chunk-W7HA65EO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-I4SPJQQI.js → chunk-XGNUDSCG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-AHV3CSQG.js → chunk-XKJ5NWQ7.js} +2 -2
- package/dist/cli-bundle/chunks/{field-option-collisions-BBGTV7AD.js → field-option-collisions-DXKTKW6J.js} +2 -2
- package/dist/cli-bundle/chunks/item-revision-DXEF4XBU.js +2 -0
- package/dist/cli-bundle/chunks/item-transaction-EANA7V4W.js +2 -0
- package/dist/cli-bundle/chunks/{linked-resource-value-list-E2DX52LY.js → linked-resource-value-list-5JRGUDUB.js} +2 -2
- package/dist/cli-bundle/chunks/{mutation-actor-NHN33ITJ.js → mutation-actor-S5G7FMNG.js} +2 -2
- package/dist/cli-bundle/chunks/{mutation-admission-PGKJTCG6.js → mutation-admission-HQVNPOXV.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-7S5QWDTI.js → register-list-query-SQF5PSJ4.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-2F6JUBST.js → register-mutation-4AQ4CEBL.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-ET3UKPYK.js → register-operations-76P7OM4P.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-I63QTFCU.js → register-setup-T6OEOZK3.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-4ZCF74G4.js → stage-KUICZHSF.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-4SCFAWAW.js → chunk-3LHBKFPD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-4DDXERKN.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-JPZGC3W4.js → chunk-4YU75CWI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TXTPAFHJ.js → chunk-5JQVPQMN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KNBGHCIP.js → chunk-5Z4DXYBZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-7DOP5HEZ.js +44 -0
- package/dist/cli-bundle/focused-chunks/{chunk-TR22GU7M.js → chunk-AX4RBJ7B.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-7A6SEZEY.js → chunk-BEHQCHQV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-BUIF6CMZ.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-E2IWEJL5.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-GBU7GKNJ.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-EQCQTYKO.js → chunk-K35KTBDZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-VQIC3UZB.js → chunk-KNST4PGF.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-P2H3GTJK.js → chunk-L2XJB5PK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-L6NOGC4N.js +100 -0
- package/dist/cli-bundle/focused-chunks/{chunk-VK3IE3TS.js → chunk-LWIIDPAV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6IY5CVGJ.js → chunk-M54BMYG4.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6BKT6XQN.js → chunk-NEK7RX3N.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-BHNBPCHP.js → chunk-OKGWIW6C.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-2DGKVXFT.js → chunk-RFDSSOTZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-SSX5YBDC.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-OG57ESZK.js → chunk-TIEQVIFN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SQ72CVUH.js → chunk-VEUBDQDP.js} +54 -54
- package/dist/cli-bundle/focused-chunks/{chunk-2UWKU2BQ.js → chunk-WDHNPNHX.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{field-option-collisions-2C6DLUC4.js → field-option-collisions-32X7FP3H.js} +2 -2
- package/dist/cli-bundle/focused-chunks/item-revision-GUYSVVQD.js +2 -0
- package/dist/cli-bundle/focused-chunks/{item-transaction-2K4SFLJ7.js → item-transaction-MLKHZPL7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-actor-DJMZUIZI.js → mutation-actor-RDZJTRW2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-SDWQVVHN.js → mutation-admission-IQB6XL75.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-QBZIK3T5.js → stage-AA7LORZ2.js} +2 -2
- package/dist/cli-bundle/main.js +27 -27
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +63 -63
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +9 -9
- package/dist/core/extensions/loader.d.ts +8 -0
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/item/actionability.js +1 -1
- package/dist/core/output/output.js +16 -16
- package/dist/mcp/server.js +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +25 -1
- package/dist/sdk/cli-contracts/enum-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/context-intent-contracts.js +1 -1
- package/dist/sdk/extension/install-sources.d.ts +2 -2
- package/dist/sdk/extension/install-sources.js +5 -5
- package/dist/sdk/lifecycle/expect-hash-admission.d.ts +27 -8
- package/dist/sdk/lifecycle/expect-hash-admission.js +1 -1
- package/dist/sdk/lifecycle/item-revision.d.ts +12 -4
- package/dist/sdk/lifecycle/item-revision.js +1 -1
- package/dist/sdk/output-projection.d.ts +1 -1
- package/dist/sdk/output-projection.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/read-output/surfaces.js +1 -1
- package/dist/sdk/runtime/schema.js +1 -1
- package/dist/sdk/runtime-input.d.ts +6 -0
- package/dist/sdk/runtime-input.js +1 -1
- package/dist/sdk/runtime-primitives.d.ts +1 -1
- package/dist/sdk/runtime-primitives.js +1 -1
- package/dist/sdk/runtime.js +1 -1
- package/docs/COMMANDS.md +23 -5
- package/docs/EXTENSIONS.md +1 -1
- package/docs/SDK.md +15 -2
- package/marketplace.json +1 -1
- package/node_modules/tar/README.md +1792 -1147
- package/node_modules/tar/dist/commonjs/bytes.d.ts +21 -0
- package/node_modules/tar/dist/commonjs/bytes.js +83 -0
- package/node_modules/tar/dist/commonjs/codec.d.ts +53 -0
- package/node_modules/tar/dist/commonjs/codec.js +35 -0
- package/node_modules/tar/dist/commonjs/concat.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/concat.js +20 -0
- package/node_modules/tar/dist/commonjs/create.d.ts +39 -2
- package/node_modules/tar/dist/commonjs/create.js +150 -64
- package/node_modules/tar/dist/commonjs/dealias.d.ts +79 -0
- package/node_modules/tar/dist/commonjs/dealias.js +50 -0
- package/node_modules/tar/dist/commonjs/delete.d.ts +19 -0
- package/node_modules/tar/dist/commonjs/delete.js +121 -0
- package/node_modules/tar/dist/commonjs/entries.d.ts +82 -0
- package/node_modules/tar/dist/commonjs/entries.js +398 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +14 -2
- package/node_modules/tar/dist/commonjs/extract.js +40 -81
- package/node_modules/tar/dist/commonjs/fs.d.ts +201 -0
- package/node_modules/tar/dist/commonjs/fs.js +5 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +4 -4
- package/node_modules/tar/dist/commonjs/header.js +71 -53
- package/node_modules/tar/dist/commonjs/index.d.ts +25 -18
- package/node_modules/tar/dist/commonjs/index.js +46 -18
- package/node_modules/tar/dist/commonjs/index.min.js +2 -3
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +2 -2
- package/node_modules/tar/dist/commonjs/large-numbers.js +4 -4
- package/node_modules/tar/dist/commonjs/list.d.ts +23 -6
- package/node_modules/tar/dist/commonjs/list.js +99 -138
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +16 -11
- package/node_modules/tar/dist/commonjs/mkdir.js +121 -159
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +9 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +284 -513
- package/node_modules/tar/dist/commonjs/options.js +20 -61
- package/node_modules/tar/dist/commonjs/pack.d.ts +150 -96
- package/node_modules/tar/dist/commonjs/pack.js +752 -445
- package/node_modules/tar/dist/commonjs/parser.d.ts +98 -0
- package/node_modules/tar/dist/commonjs/parser.js +452 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +17 -7
- package/node_modules/tar/dist/commonjs/path-reservations.js +110 -140
- package/node_modules/tar/dist/commonjs/path.d.ts +19 -0
- package/node_modules/tar/dist/commonjs/path.js +90 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +3 -1
- package/node_modules/tar/dist/commonjs/pax.js +67 -36
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +97 -11
- package/node_modules/tar/dist/commonjs/read-entry.js +251 -97
- package/node_modules/tar/dist/commonjs/read-file.d.ts +22 -0
- package/node_modules/tar/dist/commonjs/read-file.js +104 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +45 -1
- package/node_modules/tar/dist/commonjs/replace.js +164 -211
- package/node_modules/tar/dist/commonjs/server/codecs.d.ts +38 -0
- package/node_modules/tar/dist/commonjs/server/codecs.js +252 -0
- package/node_modules/tar/dist/commonjs/server/index.d.ts +115 -0
- package/node_modules/tar/dist/commonjs/server/index.js +166 -0
- package/node_modules/tar/dist/commonjs/server/index.min.js +3 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +17 -20
- package/node_modules/tar/dist/commonjs/to-stream.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/to-stream.js +22 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +4 -3
- package/node_modules/tar/dist/commonjs/types.js +4 -3
- package/node_modules/tar/dist/commonjs/unpack.d.ts +143 -89
- package/node_modules/tar/dist/commonjs/unpack.js +780 -725
- package/node_modules/tar/dist/commonjs/update.d.ts +11 -1
- package/node_modules/tar/dist/commonjs/update.js +37 -28
- package/node_modules/tar/dist/commonjs/warn.d.ts +27 -0
- package/node_modules/tar/dist/commonjs/warn.js +36 -0
- package/node_modules/tar/dist/commonjs/win32-path.d.ts +16 -0
- package/node_modules/tar/dist/commonjs/win32-path.js +67 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +64 -111
- package/node_modules/tar/dist/commonjs/write-entry.js +108 -672
- package/node_modules/tar/dist/commonjs/write-flag.d.ts +18 -0
- package/node_modules/tar/dist/commonjs/write-flag.js +29 -0
- package/node_modules/tar/dist/esm/bytes.d.ts +21 -0
- package/node_modules/tar/dist/esm/bytes.js +72 -0
- package/node_modules/tar/dist/esm/codec.d.ts +53 -0
- package/node_modules/tar/dist/esm/codec.js +32 -0
- package/node_modules/tar/dist/esm/concat.d.ts +3 -0
- package/node_modules/tar/dist/esm/concat.js +16 -0
- package/node_modules/tar/dist/esm/create.d.ts +39 -2
- package/node_modules/tar/dist/esm/create.js +144 -61
- package/node_modules/tar/dist/esm/dealias.d.ts +79 -0
- package/node_modules/tar/dist/esm/dealias.js +46 -0
- package/node_modules/tar/dist/esm/delete.d.ts +19 -0
- package/node_modules/tar/dist/esm/delete.js +117 -0
- package/node_modules/tar/dist/esm/entries.d.ts +82 -0
- package/node_modules/tar/dist/esm/entries.js +388 -0
- package/node_modules/tar/dist/esm/extract.d.ts +14 -2
- package/node_modules/tar/dist/esm/extract.js +37 -44
- package/node_modules/tar/dist/esm/fs.d.ts +201 -0
- package/node_modules/tar/dist/esm/fs.js +4 -0
- package/node_modules/tar/dist/esm/header.d.ts +4 -4
- package/node_modules/tar/dist/esm/header.js +71 -53
- package/node_modules/tar/dist/esm/index.d.ts +25 -18
- package/node_modules/tar/dist/esm/index.js +23 -18
- package/node_modules/tar/dist/esm/index.min.js +2 -3
- package/node_modules/tar/dist/esm/large-numbers.d.ts +2 -2
- package/node_modules/tar/dist/esm/large-numbers.js +4 -4
- package/node_modules/tar/dist/esm/list.d.ts +23 -6
- package/node_modules/tar/dist/esm/list.js +96 -101
- package/node_modules/tar/dist/esm/mkdir.d.ts +16 -11
- package/node_modules/tar/dist/esm/mkdir.js +119 -154
- package/node_modules/tar/dist/esm/normalize-unicode.js +9 -0
- package/node_modules/tar/dist/esm/options.d.ts +284 -513
- package/node_modules/tar/dist/esm/options.js +17 -51
- package/node_modules/tar/dist/esm/pack.d.ts +150 -96
- package/node_modules/tar/dist/esm/pack.js +750 -441
- package/node_modules/tar/dist/esm/parser.d.ts +98 -0
- package/node_modules/tar/dist/esm/parser.js +448 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +17 -7
- package/node_modules/tar/dist/esm/path-reservations.js +110 -140
- package/node_modules/tar/dist/esm/path.d.ts +19 -0
- package/node_modules/tar/dist/esm/path.js +80 -0
- package/node_modules/tar/dist/esm/pax.d.ts +3 -1
- package/node_modules/tar/dist/esm/pax.js +66 -35
- package/node_modules/tar/dist/esm/read-entry.d.ts +97 -11
- package/node_modules/tar/dist/esm/read-entry.js +248 -96
- package/node_modules/tar/dist/esm/read-file.d.ts +22 -0
- package/node_modules/tar/dist/esm/read-file.js +99 -0
- package/node_modules/tar/dist/esm/replace.d.ts +45 -1
- package/node_modules/tar/dist/esm/replace.js +160 -207
- package/node_modules/tar/dist/esm/server/codecs.d.ts +38 -0
- package/node_modules/tar/dist/esm/server/codecs.js +214 -0
- package/node_modules/tar/dist/esm/server/index.d.ts +115 -0
- package/node_modules/tar/dist/esm/server/index.js +102 -0
- package/node_modules/tar/dist/esm/server/index.min.js +3 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +8 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +17 -20
- package/node_modules/tar/dist/esm/to-stream.d.ts +7 -0
- package/node_modules/tar/dist/esm/to-stream.js +18 -0
- package/node_modules/tar/dist/esm/types.d.ts +4 -3
- package/node_modules/tar/dist/esm/types.js +4 -3
- package/node_modules/tar/dist/esm/unpack.d.ts +143 -89
- package/node_modules/tar/dist/esm/unpack.js +776 -719
- package/node_modules/tar/dist/esm/update.d.ts +11 -1
- package/node_modules/tar/dist/esm/update.js +35 -28
- package/node_modules/tar/dist/esm/warn.d.ts +27 -0
- package/node_modules/tar/dist/esm/warn.js +31 -0
- package/node_modules/tar/dist/esm/win32-path.d.ts +16 -0
- package/node_modules/tar/dist/esm/win32-path.js +60 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +64 -111
- package/node_modules/tar/dist/esm/write-entry.js +107 -633
- package/node_modules/tar/dist/esm/write-flag.d.ts +18 -0
- package/node_modules/tar/dist/esm/write-flag.js +25 -0
- package/node_modules/tar/package.json +68 -224
- package/package.json +2 -2
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-A5ZEMOVR.js +0 -2
- package/dist/cli-bundle/chunks/chunk-AJLU6KLW.js +0 -2
- package/dist/cli-bundle/chunks/chunk-C6WM6ZN4.js +0 -9
- package/dist/cli-bundle/chunks/chunk-HZZLSBIJ.js +0 -2
- package/dist/cli-bundle/chunks/chunk-L2ZSSMYY.js +0 -2
- package/dist/cli-bundle/chunks/chunk-NRQCBUYD.js +0 -113
- package/dist/cli-bundle/chunks/chunk-QDV7S2QS.js +0 -2
- package/dist/cli-bundle/chunks/item-revision-3LENTXYF.js +0 -2
- package/dist/cli-bundle/chunks/item-transaction-66RDV7PH.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-HTDYNY4L.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-N64AC5G6.js +0 -100
- package/dist/cli-bundle/focused-chunks/chunk-PT7RT3T6.js +0 -44
- package/dist/cli-bundle/focused-chunks/chunk-QZRYGYTI.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-SQMOF65W.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-T3ILWAEV.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-W4JMV7GF.js +0 -3
- package/dist/cli-bundle/focused-chunks/item-revision-723XCQPS.js +0 -2
- package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
- package/node_modules/@isaacs/fs-minipass/README.md +0 -71
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
- package/node_modules/@isaacs/fs-minipass/package.json +0 -72
- package/node_modules/chownr/LICENSE.md +0 -63
- package/node_modules/chownr/README.md +0 -3
- package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
- package/node_modules/chownr/dist/commonjs/index.js +0 -93
- package/node_modules/chownr/dist/commonjs/package.json +0 -3
- package/node_modules/chownr/dist/esm/index.d.ts +0 -3
- package/node_modules/chownr/dist/esm/index.js +0 -85
- package/node_modules/chownr/dist/esm/package.json +0 -3
- package/node_modules/chownr/package.json +0 -69
- package/node_modules/minipass/LICENSE.md +0 -55
- package/node_modules/minipass/README.md +0 -825
- package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
- package/node_modules/minipass/dist/commonjs/index.js +0 -1038
- package/node_modules/minipass/dist/commonjs/package.json +0 -3
- package/node_modules/minipass/dist/esm/index.d.ts +0 -545
- package/node_modules/minipass/dist/esm/index.js +0 -1020
- package/node_modules/minipass/dist/esm/package.json +0 -3
- package/node_modules/minipass/package.json +0 -77
- package/node_modules/minizlib/LICENSE +0 -26
- package/node_modules/minizlib/README.md +0 -64
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
- package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
- package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
- package/node_modules/minizlib/dist/commonjs/index.js +0 -416
- package/node_modules/minizlib/dist/commonjs/package.json +0 -3
- package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
- package/node_modules/minizlib/dist/esm/constants.js +0 -117
- package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
- package/node_modules/minizlib/dist/esm/index.js +0 -363
- package/node_modules/minizlib/dist/esm/package.json +0 -3
- package/node_modules/minizlib/package.json +0 -80
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
- package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
- package/node_modules/tar/dist/commonjs/make-command.js +0 -52
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
- package/node_modules/tar/dist/commonjs/parse.d.ts +0 -92
- package/node_modules/tar/dist/commonjs/parse.js +0 -655
- package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
- package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
- package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
- package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
- package/node_modules/tar/dist/esm/make-command.js +0 -48
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
- package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
- package/node_modules/tar/dist/esm/parse.d.ts +0 -92
- package/node_modules/tar/dist/esm/parse.js +0 -651
- package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
- package/node_modules/tar/dist/esm/process-umask.js +0 -3
- package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
- package/node_modules/tar/dist/esm/warn-method.js +0 -27
- package/node_modules/yallist/LICENSE.md +0 -63
- package/node_modules/yallist/README.md +0 -205
- package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
- package/node_modules/yallist/dist/commonjs/index.js +0 -384
- package/node_modules/yallist/dist/commonjs/package.json +0 -3
- package/node_modules/yallist/dist/esm/index.d.ts +0 -39
- package/node_modules/yallist/dist/esm/index.js +0 -379
- package/node_modules/yallist/dist/esm/package.json +0 -3
- package/node_modules/yallist/package.json +0 -68
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import type { WithAliases } from './dealias.js';
|
|
2
|
+
import type { ReplaceOptions, ReplaceOptionsSync } from './options.js';
|
|
3
|
+
import type { PackInput, PackInputSync } from './pack.js';
|
|
4
|
+
/**
|
|
5
|
+
* The same as `replace`, but a file is added only if it is newer than
|
|
6
|
+
* the last entry of the archive that has its path. A directory is
|
|
7
|
+
* always added, and each path in it is checked.
|
|
8
|
+
*/
|
|
9
|
+
export declare const update: (opt: WithAliases<ReplaceOptions>, files: PackInput[]) => Promise<void>;
|
|
10
|
+
/** The sync form of `update`. */
|
|
11
|
+
export declare const updateSync: (opt: WithAliases<ReplaceOptionsSync>, files: PackInputSync[]) => void;
|
|
2
12
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1,33 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// tar -u
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.update = void 0;
|
|
5
|
-
const make_command_js_1 = require("./make-command.js");
|
|
3
|
+
exports.updateSync = exports.update = void 0;
|
|
6
4
|
const replace_js_1 = require("./replace.js");
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
opt.filter =
|
|
18
|
-
filter ?
|
|
19
|
-
(path, stat) => filter(path, stat) &&
|
|
20
|
-
!(
|
|
21
|
-
/* c8 ignore start */
|
|
22
|
-
((opt.mtimeCache?.get(path) ?? stat.mtime ?? 0) >
|
|
23
|
-
(stat.mtime ?? 0))
|
|
24
|
-
/* c8 ignore stop */
|
|
25
|
-
)
|
|
26
|
-
: (path, stat) => !(
|
|
27
|
-
/* c8 ignore start */
|
|
28
|
-
((opt.mtimeCache?.get(path) ?? stat.mtime ?? 0) >
|
|
29
|
-
(stat.mtime ?? 0))
|
|
30
|
-
/* c8 ignore stop */
|
|
31
|
-
);
|
|
5
|
+
// Add a filter that refuses a path that is not newer than the entry
|
|
6
|
+
// of the same path in the archive. The filter accepts each directory
|
|
7
|
+
// of the file system: a file in a directory can be newer than the
|
|
8
|
+
// directory, and the pack reads a directory only if it adds it.
|
|
9
|
+
// A ustar header has the time in whole seconds. A file is not newer
|
|
10
|
+
// than such an entry if only the part below one second differs.
|
|
11
|
+
const isNewer = (file, archived) => {
|
|
12
|
+
const a = archived.getTime();
|
|
13
|
+
const f = file.getTime();
|
|
14
|
+
return (a % 1000 === 0 ? f - (f % 1000) : f) > a;
|
|
32
15
|
};
|
|
16
|
+
const newer = (opt) => {
|
|
17
|
+
const { filter } = opt;
|
|
18
|
+
const mtimeCache = opt.mtimeCache ?? new Map();
|
|
19
|
+
return {
|
|
20
|
+
...opt,
|
|
21
|
+
mtimeCache,
|
|
22
|
+
filter: (path, entry) => {
|
|
23
|
+
if (filter && !filter(path, entry))
|
|
24
|
+
return false;
|
|
25
|
+
if ('isDirectory' in entry && entry.isDirectory())
|
|
26
|
+
return true;
|
|
27
|
+
const archived = mtimeCache.get(path);
|
|
28
|
+
return !archived || !entry.mtime || isNewer(entry.mtime, archived);
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The same as `replace`, but a file is added only if it is newer than
|
|
34
|
+
* the last entry of the archive that has its path. A directory is
|
|
35
|
+
* always added, and each path in it is checked.
|
|
36
|
+
*/
|
|
37
|
+
const update = (opt, files) => (0, replace_js_1.replace)(newer(opt), files);
|
|
38
|
+
exports.update = update;
|
|
39
|
+
/** The sync form of `update`. */
|
|
40
|
+
const updateSync = (opt, files) => (0, replace_js_1.replaceSync)(newer(opt), files);
|
|
41
|
+
exports.updateSync = updateSync;
|
|
33
42
|
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Data that a warning or an error of this package carries. */
|
|
2
|
+
export type WarnData = {
|
|
3
|
+
file?: string;
|
|
4
|
+
code?: string;
|
|
5
|
+
tarCode?: string;
|
|
6
|
+
recoverable?: boolean;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
/** An error with the data of the warning that caused it. */
|
|
10
|
+
export type TarError = Error & WarnData;
|
|
11
|
+
/** The options that `warn` reads. */
|
|
12
|
+
export type WarnOptions = {
|
|
13
|
+
/** Throw each warning as an error. */
|
|
14
|
+
strict?: boolean;
|
|
15
|
+
/** Called for each warning when `strict` is not set. */
|
|
16
|
+
onwarn?: (code: string, message: string, data: WarnData) => unknown;
|
|
17
|
+
/** The archive file. Each warning has it as `data.file`. */
|
|
18
|
+
file?: string;
|
|
19
|
+
};
|
|
20
|
+
/** Make the error for a problem that is not recoverable. */
|
|
21
|
+
export declare const tarError: (opt: WarnOptions, code: string, message: string | Error, data?: WarnData) => TarError;
|
|
22
|
+
/**
|
|
23
|
+
* Report a problem. Call `opt.onwarn(code, message, data)`, or throw
|
|
24
|
+
* the error if `opt.strict` is set or `data.recoverable` is false.
|
|
25
|
+
*/
|
|
26
|
+
export declare const warn: (opt: WarnOptions, code: string, message: string | Error, data?: WarnData) => void;
|
|
27
|
+
//# sourceMappingURL=warn.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.warn = exports.tarError = void 0;
|
|
4
|
+
// A message that is not a string is an error. The test is not
|
|
5
|
+
// `instanceof Error`, which is false for an error of a different
|
|
6
|
+
// realm, such as an error of `node:fs` in a `node:vm` context.
|
|
7
|
+
const fill = (opt, code, message, data) => {
|
|
8
|
+
if (opt.file)
|
|
9
|
+
data.file = opt.file;
|
|
10
|
+
data.code =
|
|
11
|
+
(typeof message === 'object' && message.code) || code;
|
|
12
|
+
data.tarCode = code;
|
|
13
|
+
return data;
|
|
14
|
+
};
|
|
15
|
+
/** Make the error for a problem that is not recoverable. */
|
|
16
|
+
const tarError = (opt, code, message, data = {}) => Object.assign(typeof message === 'object' ? message : (new Error(`${code}: ${message}`)), fill(opt, code, message, data));
|
|
17
|
+
exports.tarError = tarError;
|
|
18
|
+
/**
|
|
19
|
+
* Report a problem. Call `opt.onwarn(code, message, data)`, or throw
|
|
20
|
+
* the error if `opt.strict` is set or `data.recoverable` is false.
|
|
21
|
+
*/
|
|
22
|
+
const warn = (opt, code, message, data = {}) => {
|
|
23
|
+
// The value of a changed `Object.prototype` does not count.
|
|
24
|
+
const fatal = Object.hasOwn(data, 'recoverable') && data.recoverable === false;
|
|
25
|
+
if (opt.strict || fatal) {
|
|
26
|
+
throw (0, exports.tarError)(opt, code, message, data);
|
|
27
|
+
}
|
|
28
|
+
fill(opt, code, message, data);
|
|
29
|
+
if (typeof message === 'object') {
|
|
30
|
+
data = Object.assign(message, data);
|
|
31
|
+
message = message.message;
|
|
32
|
+
}
|
|
33
|
+
opt.onwarn?.(code, message, data);
|
|
34
|
+
};
|
|
35
|
+
exports.warn = warn;
|
|
36
|
+
//# sourceMappingURL=warn.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The root of a path: a slash, a drive such as `c:` or `c:/`, or a
|
|
3
|
+
* UNC root such as `//host/share/`. The same result as the `root` of
|
|
4
|
+
* `path.win32.parse`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const win32Root: (path: string) => string;
|
|
7
|
+
/** True for a path with a root that is not relative to a drive. */
|
|
8
|
+
export declare const win32IsAbsolute: (path: string) => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Resolve `path` from the absolute path `base`. Both have `/`
|
|
11
|
+
* separators.
|
|
12
|
+
*/
|
|
13
|
+
export declare const win32Resolve: (base: string, path: string) => string;
|
|
14
|
+
/** The parent directory of an absolute path with `/` separators. */
|
|
15
|
+
export declare const win32Dirname: (path: string) => string;
|
|
16
|
+
//# sourceMappingURL=win32-path.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// The path rules of Windows that the extraction needs. Each function
|
|
3
|
+
// takes a path with `/` or `\` separators.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.win32Dirname = exports.win32Resolve = exports.win32IsAbsolute = exports.win32Root = void 0;
|
|
6
|
+
const path_js_1 = require("./path.js");
|
|
7
|
+
const isSep = (code) => code === 47 || code === 92;
|
|
8
|
+
const isDrive = (code) => (code >= 65 && code <= 90) || (code >= 97 && code <= 122);
|
|
9
|
+
/**
|
|
10
|
+
* The root of a path: a slash, a drive such as `c:` or `c:/`, or a
|
|
11
|
+
* UNC root such as `//host/share/`. The same result as the `root` of
|
|
12
|
+
* `path.win32.parse`.
|
|
13
|
+
*/
|
|
14
|
+
const win32Root = (path) => {
|
|
15
|
+
const len = path.length;
|
|
16
|
+
let end = 0;
|
|
17
|
+
if (isSep(path.charCodeAt(0))) {
|
|
18
|
+
end = 1;
|
|
19
|
+
if (isSep(path.charCodeAt(1))) {
|
|
20
|
+
// `//host/share` and what follows it
|
|
21
|
+
let j = 2;
|
|
22
|
+
let last = j;
|
|
23
|
+
while (j < len && !isSep(path.charCodeAt(j)))
|
|
24
|
+
j++;
|
|
25
|
+
if (j < len && j !== last) {
|
|
26
|
+
last = j;
|
|
27
|
+
while (j < len && isSep(path.charCodeAt(j)))
|
|
28
|
+
j++;
|
|
29
|
+
if (j < len && j !== last) {
|
|
30
|
+
last = j;
|
|
31
|
+
while (j < len && !isSep(path.charCodeAt(j)))
|
|
32
|
+
j++;
|
|
33
|
+
if (j === len)
|
|
34
|
+
end = j;
|
|
35
|
+
else if (j !== last)
|
|
36
|
+
end = j + 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
else if (isDrive(path.charCodeAt(0)) && path.charCodeAt(1) === 58) {
|
|
42
|
+
end = isSep(path.charCodeAt(2)) ? 3 : 2;
|
|
43
|
+
}
|
|
44
|
+
return path.slice(0, end);
|
|
45
|
+
};
|
|
46
|
+
exports.win32Root = win32Root;
|
|
47
|
+
/** True for a path with a root that is not relative to a drive. */
|
|
48
|
+
const win32IsAbsolute = (path) => isSep(path.charCodeAt(0)) || (0, exports.win32Root)(path).length === 3;
|
|
49
|
+
exports.win32IsAbsolute = win32IsAbsolute;
|
|
50
|
+
/**
|
|
51
|
+
* Resolve `path` from the absolute path `base`. Both have `/`
|
|
52
|
+
* separators.
|
|
53
|
+
*/
|
|
54
|
+
const win32Resolve = (base, path) => {
|
|
55
|
+
const full = (0, exports.win32IsAbsolute)(path) ? path : base + '/' + path;
|
|
56
|
+
const root = (0, exports.win32Root)(full);
|
|
57
|
+
return root + (0, path_js_1.resolve)('/', full.slice(root.length)).slice(1);
|
|
58
|
+
};
|
|
59
|
+
exports.win32Resolve = win32Resolve;
|
|
60
|
+
/** The parent directory of an absolute path with `/` separators. */
|
|
61
|
+
const win32Dirname = (path) => {
|
|
62
|
+
const root = (0, exports.win32Root)(path);
|
|
63
|
+
const dir = (0, path_js_1.dirname)(path.slice(root.length));
|
|
64
|
+
return dir === '.' ? root : root + dir;
|
|
65
|
+
};
|
|
66
|
+
exports.win32Dirname = win32Dirname;
|
|
67
|
+
//# sourceMappingURL=win32-path.js.map
|
|
@@ -1,129 +1,82 @@
|
|
|
1
|
-
import { type Stats } from 'fs';
|
|
2
|
-
import { Minipass } from 'minipass';
|
|
3
1
|
import { Header } from './header.js';
|
|
4
|
-
import type { TarOptions, TarOptionsWithAliases } from './options.js';
|
|
5
|
-
import type { ReadEntry } from './read-entry.js';
|
|
6
2
|
import type { EntryTypeName } from './types.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare const READ: unique symbol;
|
|
15
|
-
declare const LSTAT: unique symbol;
|
|
16
|
-
declare const ONLSTAT: unique symbol;
|
|
17
|
-
declare const ONREAD: unique symbol;
|
|
18
|
-
declare const ONREADLINK: unique symbol;
|
|
19
|
-
declare const OPENFILE: unique symbol;
|
|
20
|
-
declare const ONOPENFILE: unique symbol;
|
|
21
|
-
declare const CLOSE: unique symbol;
|
|
22
|
-
declare const MODE: unique symbol;
|
|
23
|
-
declare const AWAITDRAIN: unique symbol;
|
|
24
|
-
declare const ONDRAIN: unique symbol;
|
|
25
|
-
declare const PREFIX: unique symbol;
|
|
26
|
-
export declare class WriteEntry extends Minipass<Buffer, Minipass.ContiguousData, WarnEvent> implements Warner {
|
|
27
|
-
#private;
|
|
3
|
+
/**
|
|
4
|
+
* The content of a `WriteEntry`. `PackSync` takes only a string, a
|
|
5
|
+
* `Uint8Array`, or a sync iterable.
|
|
6
|
+
*/
|
|
7
|
+
export type WriteBody = string | Uint8Array | Blob | ReadableStream<Uint8Array> | AsyncIterable<Uint8Array> | Iterable<Uint8Array>;
|
|
8
|
+
/** The metadata of a `WriteEntry`. A `ReadEntry` fits this type. */
|
|
9
|
+
export type WriteEntryData = {
|
|
28
10
|
path: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
11
|
+
/** Default `'File'`. */
|
|
12
|
+
type?: EntryTypeName;
|
|
13
|
+
mode?: number;
|
|
14
|
+
uid?: number;
|
|
15
|
+
gid?: number;
|
|
16
|
+
uname?: string;
|
|
17
|
+
gname?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The number of bytes in the body. Default: the length of a body
|
|
20
|
+
* that is a string, a `Uint8Array`, or a `Blob`.
|
|
21
|
+
*/
|
|
22
|
+
size?: number;
|
|
38
23
|
mtime?: Date;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
prefix?: string;
|
|
42
|
-
fd?: number;
|
|
43
|
-
blockLen: number;
|
|
44
|
-
blockRemain: number;
|
|
45
|
-
buf?: Buffer;
|
|
46
|
-
pos: number;
|
|
47
|
-
remain: number;
|
|
48
|
-
length: number;
|
|
49
|
-
offset: number;
|
|
50
|
-
win32: boolean;
|
|
51
|
-
absolute: string;
|
|
52
|
-
header?: Header;
|
|
53
|
-
type?: EntryTypeName | 'Unsupported';
|
|
24
|
+
atime?: Date;
|
|
25
|
+
ctime?: Date;
|
|
54
26
|
linkpath?: string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
[PROCESS](): void | this;
|
|
63
|
-
[MODE](mode: number): number;
|
|
64
|
-
[PREFIX](path: string): string;
|
|
65
|
-
[HEADER](): void;
|
|
66
|
-
[DIRECTORY](): void;
|
|
67
|
-
[SYMLINK](): void;
|
|
68
|
-
[ONREADLINK](linkpath: string): void;
|
|
69
|
-
[HARDLINK](linkpath: string): void;
|
|
70
|
-
[FILE](): void | this;
|
|
71
|
-
[OPENFILE](): void;
|
|
72
|
-
[ONOPENFILE](fd: number): void;
|
|
73
|
-
[READ](): void;
|
|
74
|
-
[CLOSE](cb?: (er?: null | Error | NodeJS.ErrnoException) => unknown): void;
|
|
75
|
-
[ONREAD](bytesRead: number): void;
|
|
76
|
-
[AWAITDRAIN](cb: () => unknown): void;
|
|
77
|
-
write(buffer: Buffer | string, cb?: () => void): boolean;
|
|
78
|
-
write(str: Buffer | string, encoding?: BufferEncoding | null, cb?: () => void): boolean;
|
|
79
|
-
[ONDRAIN](): void;
|
|
80
|
-
}
|
|
81
|
-
export declare class WriteEntrySync extends WriteEntry implements Warner {
|
|
82
|
-
sync: true;
|
|
83
|
-
[LSTAT](): void;
|
|
84
|
-
[SYMLINK](): void;
|
|
85
|
-
[OPENFILE](): void;
|
|
86
|
-
[READ](): void;
|
|
87
|
-
[AWAITDRAIN](cb: () => unknown): void;
|
|
88
|
-
[CLOSE](cb?: (er?: null | Error | NodeJS.ErrnoException) => unknown): void;
|
|
89
|
-
}
|
|
90
|
-
export declare class WriteEntryTar extends Minipass<Buffer, Buffer | string, WarnEvent> implements Warner {
|
|
91
|
-
blockLen: number;
|
|
92
|
-
blockRemain: number;
|
|
93
|
-
buf: number;
|
|
94
|
-
pos: number;
|
|
95
|
-
remain: number;
|
|
96
|
-
length: number;
|
|
97
|
-
preservePaths: boolean;
|
|
98
|
-
portable: boolean;
|
|
99
|
-
strict: boolean;
|
|
100
|
-
noPax: boolean;
|
|
101
|
-
noMtime: boolean;
|
|
102
|
-
readEntry: ReadEntry;
|
|
103
|
-
type: EntryTypeName;
|
|
27
|
+
dev?: number;
|
|
28
|
+
ino?: number;
|
|
29
|
+
nlink?: number;
|
|
30
|
+
};
|
|
31
|
+
/** The options of `WriteEntry.encode`. */
|
|
32
|
+
export type EncodeOptions = {
|
|
33
|
+
/** A directory to put before the path, and before a hard link target. */
|
|
104
34
|
prefix?: string;
|
|
35
|
+
/** Write no PAX header for a field that does not fit the header. */
|
|
36
|
+
noPax?: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* An entry to write to an archive, in the shape of a `Request`: the
|
|
40
|
+
* metadata is in the fields, and the content is `body`.
|
|
41
|
+
*
|
|
42
|
+
* A pack makes one for each path that it reads from the file system
|
|
43
|
+
* and for each entry that it copies from another archive. Make one
|
|
44
|
+
* with content from memory, and give it to `Pack.add()`.
|
|
45
|
+
*
|
|
46
|
+
* `onWriteEntry` gets the entry before its header is written, and can
|
|
47
|
+
* change each field.
|
|
48
|
+
*/
|
|
49
|
+
export declare class WriteEntry {
|
|
105
50
|
path: string;
|
|
51
|
+
type: EntryTypeName;
|
|
52
|
+
/** The permission bits only. */
|
|
106
53
|
mode?: number;
|
|
107
54
|
uid?: number;
|
|
108
55
|
gid?: number;
|
|
109
56
|
uname?: string;
|
|
110
57
|
gname?: string;
|
|
111
|
-
|
|
58
|
+
/** The number of bytes in the body. The body must have this many. */
|
|
59
|
+
size: number;
|
|
112
60
|
mtime?: Date;
|
|
113
61
|
atime?: Date;
|
|
114
62
|
ctime?: Date;
|
|
115
63
|
linkpath?: string;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
64
|
+
dev?: number;
|
|
65
|
+
ino?: number;
|
|
66
|
+
nlink?: number;
|
|
67
|
+
/** The content. A string is kept as its UTF-8 bytes. */
|
|
68
|
+
body?: Exclude<WriteBody, string>;
|
|
69
|
+
/** The path of the file, for an entry that a pack read from a path. */
|
|
70
|
+
absolute?: string;
|
|
71
|
+
/** The header block, after `encode()`. */
|
|
72
|
+
header?: Header;
|
|
73
|
+
constructor(data: WriteEntryData, body?: WriteBody);
|
|
74
|
+
/**
|
|
75
|
+
* Make the header from the fields, and write it to the first 512
|
|
76
|
+
* bytes of `block`, which must be zeros. Returns the blocks to
|
|
77
|
+
* write before the body: `block`, and before it a PAX header entry
|
|
78
|
+
* if a field does not fit the header.
|
|
79
|
+
*/
|
|
80
|
+
encode(opt?: EncodeOptions, block?: Uint8Array): Uint8Array[];
|
|
127
81
|
}
|
|
128
|
-
export {};
|
|
129
82
|
//# sourceMappingURL=write-entry.d.ts.map
|