@poe-platform/safe-bash 0.1.823 → 0.1.825
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/dist/safe-bash/command-chunks/{chunk-LDR3PPM3.js → chunk-22QEL76N.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-BSLXS4PE.js → chunk-3DH5QBZC.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-KQE2D7PX.js → chunk-3HUCLYKJ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PLVFJ6FF.js → chunk-4EA7WI3L.js} +9 -1
- package/dist/safe-bash/command-chunks/{chunk-J4I7KCQQ.js → chunk-4JABZEDO.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-PVKSBXHB.js → chunk-4M6D4IUB.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-UVM6QG2H.js → chunk-4MVQE6CT.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-QWQHLMDX.js → chunk-4VTB4DGE.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JQPDVCBU.js → chunk-565AAQTV.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JSW6YH6T.js → chunk-5PRXCH54.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-42OQIFPW.js → chunk-5RLK2QSY.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-PYYAX5FB.js → chunk-63WEGFLL.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-5QR4LTAK.js → chunk-6KZXFPOT.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-LJLB7TBN.js → chunk-6YTXU3NF.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-NNYOPI7K.js → chunk-7NF44M2V.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-ZRHKXN6W.js → chunk-7RQGRFHJ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-QGSY4ZAU.js → chunk-7UYBNOOM.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-6REH56FL.js → chunk-AA254KE5.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-2VSNIHIW.js → chunk-APUXNXXQ.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-XE75H5ZZ.js → chunk-AVXSR5MO.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-22D6Q6SW.js → chunk-BKCVCMUX.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-UDRJKA3P.js → chunk-C23L4HZB.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PAEAEFK3.js → chunk-C3EEMMQL.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-NDJPULBE.js → chunk-CEKBIZGU.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-75OUKYCM.js → chunk-CH5JDE3C.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XNVL6AOV.js → chunk-CIYGC7WU.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-RUXY7GN5.js → chunk-CMJBRGU2.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DGFMOT4O.js → chunk-CO4HYNPS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TMJG745A.js → chunk-CQLZM75U.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-T2LZWXWF.js → chunk-DBCTHLB5.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-6RE4MZYM.js → chunk-DBEJMI7J.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XXUMECE4.js → chunk-DEEZYCOQ.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-YJMS5Q4Y.js → chunk-DHTTI7CE.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-D3WMD32B.js → chunk-DLLGOC4Q.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-HVLF3Y4B.js → chunk-DYCYAIET.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-5NC2IQMQ.js → chunk-EV7A5FNN.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2YC6MWQB.js → chunk-EY3UE26F.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZQ4NQ24M.js → chunk-FJLVISSD.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-WOO3YO2X.js → chunk-HTMGN3KL.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-2E53ZL5D.js → chunk-HU72CZBN.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-AH3ZEPAN.js → chunk-IGHFIRXK.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3UDJYSAF.js → chunk-IX3B4HCD.js} +34 -2
- package/dist/safe-bash/command-chunks/{chunk-J3ISXTYB.js → chunk-JTEAYB72.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-NR7POLKP.js → chunk-KCS25XUJ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-EO3RYGUZ.js → chunk-LFTGMUAV.js} +465 -121
- package/dist/safe-bash/command-chunks/chunk-LKAFLJ5L.js +123 -0
- package/dist/safe-bash/command-chunks/{chunk-EU5SR3LS.js → chunk-LSH6UKCT.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-WV3C6BRD.js → chunk-MHZ7UTRX.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-K6J3KFQ2.js → chunk-MSA5BQFK.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-OMD45J52.js → chunk-MW3L6JB7.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-AR65HNNX.js → chunk-N2TN7IBE.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-NWA7ZJDV.js → chunk-NU64GWGN.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-NXCJNPL3.js +47 -0
- package/dist/safe-bash/command-chunks/{chunk-GAYTDZPP.js → chunk-ORWYNKKL.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FCGMSOF6.js → chunk-P6YTNXRV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3RDEX4AF.js → chunk-PAS4YSNN.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TTPT3OME.js → chunk-PSNTCRL5.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-FGK6HLSY.js → chunk-QC2RWSYM.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-HCZITM4C.js → chunk-QPY3NCMC.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-3TXPZLFI.js → chunk-R6RVR6ZZ.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-HQFX5XKV.js → chunk-RB7XAYO2.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-6PDXNY3T.js → chunk-RF5VEKFU.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-VAMBWXDV.js → chunk-RUAGHZNF.js} +18 -18
- package/dist/safe-bash/command-chunks/{chunk-WDTWJFPK.js → chunk-RZOHZGEZ.js} +160 -85
- package/dist/safe-bash/command-chunks/{chunk-3MFYCMQU.js → chunk-S2T7DDGY.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-LZHFVNEV.js → chunk-S3QYSI5E.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZLMCWAAU.js → chunk-STTXZKR6.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-AXUHORS3.js → chunk-SUYSZJI3.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-C5SLY3RB.js → chunk-U2C6A3QO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-HCJWEB6P.js → chunk-U6IEK2CI.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-NN6OWOJG.js → chunk-UC6DUY3K.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-64L57DEI.js → chunk-UQTU7H6T.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-ARA57PMC.js → chunk-V5PVNBOS.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-ZZ6EIACJ.js → chunk-VGHRMAI4.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-DZTT5SLG.js → chunk-VP7R7HKY.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-TP5MZHCB.js → chunk-W5Y7Y7PS.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-ZTW2E5OT.js → chunk-WAE3OCOU.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-DBYY7IDI.js → chunk-WCM47S5A.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-U6VSRO6E.js → chunk-WNVBS4GV.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-CXOAMPOV.js → chunk-WUIS2INH.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-64HIOP7Q.js → chunk-WY6THI6J.js} +33 -353
- package/dist/safe-bash/command-chunks/{chunk-RGKHTSUY.js → chunk-XSZNL3GV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4HJEZGYN.js → chunk-YODHIRPW.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-C3FERGHU.js → chunk-YRMTOLG5.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-YXIJOYT6.js → chunk-ZUOCXDYW.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-LBBJ5S3W.js → chunk-ZZKJPLIH.js} +1 -1
- package/dist/safe-bash/command-chunks/{engine-UPLVIV72-IGXUDNO5.js → engine-UPLVIV72-MSSFJLK4.js} +1 -1
- package/dist/safe-bash/commands/llm/collections.browser.js +4 -2
- package/dist/safe-bash/commands/llm/collections.js +1 -1
- package/dist/safe-bash/commands/python/source-archive.d.ts +2 -0
- package/dist/safe-bash/commands/python/source-archive.js +2 -0
- package/dist/safe-bash/commands/python/source-zip.d.ts +2 -0
- package/dist/safe-bash/commands/python/source-zip.js +2 -0
- package/dist/safe-bash-command-exiftool/index.js +41 -0
- package/dist/safe-bash-command-git/git_rust.wasm +0 -0
- package/dist/safe-bash-command-llm/collections.d.ts +2 -0
- package/dist/safe-bash-command-llm/collections.js +146 -22
- package/dist/safe-bash-command-llm/command.js +1 -1
- package/dist/safe-bash-command-llm/import-sql.d.ts +9 -0
- package/dist/safe-bash-command-llm/index.js +1 -1
- package/dist/safe-bash-command-playwright-cli/index.js +36 -36
- package/dist/safe-bash-command-playwright-cli/playwright/abilities.js +7 -7
- package/dist/safe-bash-command-playwright-cli/playwright/adapter.js +3 -3
- package/dist/safe-bash-command-playwright-cli/playwright/capability-events.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/capability-result.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/controller.js +15 -15
- package/dist/safe-bash-command-playwright-cli/playwright/download-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/drop-capability.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/index.js +35 -35
- package/dist/safe-bash-command-playwright-cli/playwright/modal-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/native-evaluation.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/native-json-snapshot.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/native-snapshot.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/native-storage-replacement.js +2 -2
- package/dist/safe-bash-command-playwright-cli/playwright/profile.js +3 -3
- package/dist/safe-bash-command-playwright-cli/playwright/recording-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/route-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/snapshot.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/standard-capabilities.js +6 -6
- package/dist/safe-bash-command-playwright-cli/playwright/storage-capabilities.js +5 -5
- package/dist/safe-bash-command-playwright-cli/playwright/tracing-capabilities.js +1 -1
- package/dist/safe-bash-command-playwright-cli/playwright/webmcp-capabilities.js +1 -1
- package/dist/safe-bash-command-python/build-backend.d.ts +45 -3
- package/dist/safe-bash-command-python/build-dependencies.d.ts +2 -1
- package/dist/safe-bash-command-python/build-wheel.d.ts +11 -2
- package/dist/safe-bash-command-python/executor.d.ts +1 -1
- package/dist/safe-bash-command-python/executor.js +6 -5
- package/dist/safe-bash-command-python/index.js +6 -5
- package/dist/safe-bash-command-python/jspi.js +2 -2
- package/dist/safe-bash-command-python/manifest.d.ts +5 -1
- package/dist/safe-bash-command-python/provisioning.d.ts +8 -4
- package/dist/safe-bash-command-python/provisioning.js +2 -1
- package/dist/safe-bash-command-python/source-archive.d.ts +4 -0
- package/dist/safe-bash-command-python/source-archive.js +136 -0
- package/dist/safe-bash-command-python/source-environment.d.ts +4 -1
- package/dist/safe-bash-command-python/source-zip.d.ts +8 -0
- package/dist/safe-bash-command-python/source-zip.js +8 -0
- package/dist/safe-bash-command-python/worker.js +1 -1
- package/dist/safe-bash-command-safejs/index.js +5 -5
- package/dist/safe-bash-command-safejs/runtime.js +3 -3
- package/dist/safe-bash-command-ssconvert/index.js +8 -8
- package/dist/safe-bash-compression-engine/bounded-codec.js +2 -2
- package/dist/safe-bash-compression-engine/codec-loader.js +1 -1
- package/dist/safe-bash-compression-engine/files.js +5 -5
- package/dist/safe-bash-compression-engine/index.js +4 -4
- package/dist/safe-bash-compression-engine/operand.js +5 -5
- package/dist/safe-bash-compression-engine/stream.js +4 -4
- package/dist/safe-bash-compression-engine/zstd-decode.js +3 -3
- package/dist/safe-bash-presentation-engine/accessibility.js +15 -15
- package/dist/safe-bash-presentation-engine/animation-editing.js +5 -5
- package/dist/safe-bash-presentation-engine/animations.js +5 -5
- package/dist/safe-bash-presentation-engine/backgrounds.js +6 -6
- package/dist/safe-bash-presentation-engine/chart-editing.js +18 -18
- package/dist/safe-bash-presentation-engine/chart-object-operations.js +12 -12
- package/dist/safe-bash-presentation-engine/charts.js +15 -15
- package/dist/safe-bash-presentation-engine/command-placeholder.js +39 -39
- package/dist/safe-bash-presentation-engine/comments.js +6 -6
- package/dist/safe-bash-presentation-engine/connector-operations.js +16 -16
- package/dist/safe-bash-presentation-engine/connectors.js +13 -13
- package/dist/safe-bash-presentation-engine/diff.js +21 -21
- package/dist/safe-bash-presentation-engine/drawing-format.js +7 -7
- package/dist/safe-bash-presentation-engine/drawing-operations.js +15 -15
- package/dist/safe-bash-presentation-engine/drawing-schema.js +8 -8
- package/dist/safe-bash-presentation-engine/equations.js +6 -6
- package/dist/safe-bash-presentation-engine/fields.js +6 -6
- package/dist/safe-bash-presentation-engine/image-extraction.js +7 -7
- package/dist/safe-bash-presentation-engine/image-formatting.js +16 -16
- package/dist/safe-bash-presentation-engine/image-insertion.js +6 -6
- package/dist/safe-bash-presentation-engine/image-replacement.js +7 -7
- package/dist/safe-bash-presentation-engine/images.js +6 -6
- package/dist/safe-bash-presentation-engine/index.js +104 -104
- package/dist/safe-bash-presentation-engine/layouts.js +5 -5
- package/dist/safe-bash-presentation-engine/links.js +5 -5
- package/dist/safe-bash-presentation-engine/masters.js +4 -4
- package/dist/safe-bash-presentation-engine/media-editing.js +13 -13
- package/dist/safe-bash-presentation-engine/media-extraction.js +7 -7
- package/dist/safe-bash-presentation-engine/media.js +6 -6
- package/dist/safe-bash-presentation-engine/memberships.js +5 -5
- package/dist/safe-bash-presentation-engine/notes.js +6 -6
- package/dist/safe-bash-presentation-engine/ole-insertion.js +6 -6
- package/dist/safe-bash-presentation-engine/opaque-objects.js +2 -2
- package/dist/safe-bash-presentation-engine/package-tools.js +6 -6
- package/dist/safe-bash-presentation-engine/presentation-model.js +38 -38
- package/dist/safe-bash-presentation-engine/presentation-settings.js +5 -5
- package/dist/safe-bash-presentation-engine/properties.js +6 -6
- package/dist/safe-bash-presentation-engine/retained-inspection.js +3 -3
- package/dist/safe-bash-presentation-engine/retained-text.js +16 -16
- package/dist/safe-bash-presentation-engine/sanitize.js +7 -7
- package/dist/safe-bash-presentation-engine/selectors.js +2 -2
- package/dist/safe-bash-presentation-engine/shape-groups.js +15 -15
- package/dist/safe-bash-presentation-engine/shape-operations.js +14 -14
- package/dist/safe-bash-presentation-engine/shape-path-operations.js +16 -16
- package/dist/safe-bash-presentation-engine/shape-paths.js +5 -5
- package/dist/safe-bash-presentation-engine/shape-selection.js +15 -15
- package/dist/safe-bash-presentation-engine/shape-transforms.js +5 -5
- package/dist/safe-bash-presentation-engine/shapes.js +11 -11
- package/dist/safe-bash-presentation-engine/slide-copy.js +7 -7
- package/dist/safe-bash-presentation-engine/slide-import.js +6 -6
- package/dist/safe-bash-presentation-engine/slide-merge-split.js +8 -8
- package/dist/safe-bash-presentation-engine/slide-model.js +25 -25
- package/dist/safe-bash-presentation-engine/slide-removal.js +7 -7
- package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +2 -2
- package/dist/safe-bash-presentation-engine/slides.js +5 -5
- package/dist/safe-bash-presentation-engine/table-operations.js +17 -17
- package/dist/safe-bash-presentation-engine/table-spans.js +16 -16
- package/dist/safe-bash-presentation-engine/tables.js +15 -15
- package/dist/safe-bash-presentation-engine/tags.js +6 -6
- package/dist/safe-bash-presentation-engine/template-bindings.js +16 -16
- package/dist/safe-bash-presentation-engine/template-repeat.js +26 -26
- package/dist/safe-bash-presentation-engine/text-fitting.js +11 -11
- package/dist/safe-bash-presentation-engine/text-frames.js +11 -11
- package/dist/safe-bash-presentation-engine/text-paragraphs.js +11 -11
- package/dist/safe-bash-presentation-engine/text-reading.js +3 -3
- package/dist/safe-bash-presentation-engine/text-replacement.js +6 -6
- package/dist/safe-bash-presentation-engine/text-runs.js +8 -8
- package/dist/safe-bash-presentation-engine/themes.js +5 -5
- package/dist/safe-bash-presentation-engine/transitions.js +6 -6
- package/dist/safe-bash-presentation-engine/validation.js +2 -2
- package/dist/safe-bash-presentation-engine/xml-parts.js +5 -5
- package/dist/safe-bash-sqlite-engine/safe-fs.d.ts +6 -0
- package/dist/safe-bash-sqlite-engine/safe-fs.js +1 -1
- package/dist/safe-bash-sqlite-engine/sqlite-attachments.d.ts +5 -0
- package/dist/safe-bash-sqlite-engine/sqlite-input-snapshots.d.ts +20 -0
- package/dist/safe-bash-sqlite-engine/sqlite-query-records.d.ts +9 -0
- package/dist/safe-bash-sqlite-engine/sqlite-read-session.d.ts +3 -16
- package/dist/safe-bash-sqlite-engine/sqlite-session.d.ts +4 -0
- package/dist/safe-bash-sqlite-engine/sqlite-statement.d.ts +4 -0
- package/dist/safe-bash-sqlite-engine/storage.d.ts +2 -0
- package/dist/safe-bash-sqlite-engine/storage.js +324 -31
- package/dist/safe-bash-sqlite-engine/types.d.ts +1 -0
- package/package.json +12 -2
- package/dist/safe-bash/command-chunks/{biff-AYJZR2YV-YFF3BK43.js → biff-AYJZR2YV-2BK47I2W.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-SKDJCMGI.js → chunk-ATUZ7J3B.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-4Q4R3VZU.js → chunk-ETFJ4L7F.js} +0 -0
- package/dist/safe-bash/command-chunks/{chunk-QWHBQBPB.js → chunk-EXDMIGZY.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-SKF6PGA5.js → chunk-I2OKE2NI.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-2H6RJPCQ.js → chunk-JDDZRKC4.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-3TP4SSPS.js → chunk-SRXARACJ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-D54L2IOZ.js → chunk-Y7UXJ77P.js} +3 -3
- package/dist/safe-bash/command-chunks/{dif-BXKPQOCO-FVJYYGYB.js → dif-BXKPQOCO-4KB3RC6G.js} +4 -4
- package/dist/safe-bash/command-chunks/{sylk-25D7TL2Y-NJKBZZTF.js → sylk-25D7TL2Y-RU6ANKGT.js} +4 -4
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
openPythonPackageFile
|
|
3
|
+
} from "./chunk-NXCJNPL3.js";
|
|
4
|
+
|
|
5
|
+
// packages/safe-bash-command-python/src/source-archive-path.ts
|
|
6
|
+
var splitPythonSourcePath = (name) => {
|
|
7
|
+
while (name.startsWith("/")) name = name.slice(1);
|
|
8
|
+
while (name.startsWith("\\")) name = name.slice(1);
|
|
9
|
+
const slash = name.indexOf("/"), backslash = name.indexOf("\\");
|
|
10
|
+
const at = slash < 0 ? backslash : backslash < 0 ? slash : Math.min(slash, backslash);
|
|
11
|
+
return at < 0 ? [name, ""] : [name.slice(0, at), name.slice(at + 1)];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// packages/safe-bash-command-python/src/source-zip-extract.ts
|
|
15
|
+
import { resolvePath, dirname } from "../../safe-bash-contracts/path.js";
|
|
16
|
+
import { readZipIndexedArchive, decodeZipEntry } from "../../safe-bash-zip-engine/index.js";
|
|
17
|
+
import { DEFAULT_ARCHIVE_LIMITS } from "../../safe-bash-io-engine/commands/archive/internal.js";
|
|
18
|
+
import { createArchiveScratchFactory } from "../../safe-bash-io-engine/commands/archive/scratch.js";
|
|
19
|
+
async function pythonSourceZipSize(input) {
|
|
20
|
+
const tail = new Uint8Array(Math.min(input.size, 65558)), start = input.size - tail.length;
|
|
21
|
+
for (let offset = 0; offset < tail.length; ) {
|
|
22
|
+
const bytes = await input.read(start + offset, tail.length - offset);
|
|
23
|
+
tail.set(bytes, offset);
|
|
24
|
+
offset += bytes.length;
|
|
25
|
+
}
|
|
26
|
+
const signature = (offset) => tail[offset] === 80 && tail[offset + 1] === 75 && tail[offset + 2] === 5 && tail[offset + 3] === 6;
|
|
27
|
+
let end = -1;
|
|
28
|
+
if (tail.length >= 22 && signature(tail.length - 22) && tail[tail.length - 2] === 0 && tail[tail.length - 1] === 0) end = tail.length - 22;
|
|
29
|
+
else for (let offset = tail.length - 4; offset >= 0; offset--) if (signature(offset)) {
|
|
30
|
+
if (offset + 22 <= tail.length) end = offset;
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
return end < 0 ? void 0 : Math.min(input.size, start + end + 22 + tail[end + 20] + 256 * tail[end + 21]);
|
|
34
|
+
}
|
|
35
|
+
async function extractPythonSourceZipFile(input, directory, maxBytes, context, zipSize, flatten = true) {
|
|
36
|
+
const { fs, signal } = context;
|
|
37
|
+
const limits = { ...DEFAULT_ARCHIVE_LIMITS, maxArchiveBytes: maxBytes };
|
|
38
|
+
let scratch;
|
|
39
|
+
let archive, primary, failed = false;
|
|
40
|
+
try {
|
|
41
|
+
scratch = createArchiveScratchFactory({ context, limits, operation: (action) => Promise.resolve().then(action) }, dirname(directory));
|
|
42
|
+
const size = zipSize ?? await pythonSourceZipSize(input) ?? input.size;
|
|
43
|
+
archive = await readZipIndexedArchive({ ...input, size }, limits, signal, scratch, { allowUnreferencedData: true });
|
|
44
|
+
let prefix;
|
|
45
|
+
for await (const entry of archive.entries) {
|
|
46
|
+
const [part] = splitPythonSourcePath(entry.name);
|
|
47
|
+
if (!part || prefix !== void 0 && part !== prefix) {
|
|
48
|
+
flatten = false;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
prefix = part;
|
|
52
|
+
}
|
|
53
|
+
for await (const entry of archive.entries) {
|
|
54
|
+
signal.throwIfAborted();
|
|
55
|
+
const name = flatten ? splitPythonSourcePath(entry.name)[1] : entry.name, path = resolvePath(directory, name);
|
|
56
|
+
if (path !== directory && !path.startsWith(directory + "/")) throw new Error("Source ZIP member escapes the build directory");
|
|
57
|
+
if (path.includes("\0")) throw new Error("Invalid source ZIP member");
|
|
58
|
+
if (!name || name.endsWith("/") || name.endsWith("\\")) await fs.mkdir(path, { recursive: true, mode: 493, signal });
|
|
59
|
+
else {
|
|
60
|
+
await fs.mkdir(dirname(path), { recursive: true, mode: 493, signal });
|
|
61
|
+
const bytes = decodeZipEntry(entry, limits, signal);
|
|
62
|
+
let finished = false;
|
|
63
|
+
const observed = (async function* () {
|
|
64
|
+
yield* bytes;
|
|
65
|
+
finished = true;
|
|
66
|
+
})();
|
|
67
|
+
try {
|
|
68
|
+
await fs.writeStream(path, observed, { flag: "w", mode: entry.mode & 73 ? 493 : 420, signal });
|
|
69
|
+
if (!finished) throw new Error("Source ZIP write ended before consuming its member");
|
|
70
|
+
if (entry.mode & 73) {
|
|
71
|
+
if (!fs.chmod) throw new Error("Source ZIP executable files require permissions support");
|
|
72
|
+
await fs.chmod(path, 493, { signal });
|
|
73
|
+
}
|
|
74
|
+
} finally {
|
|
75
|
+
await observed.return(void 0);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
} catch (error) {
|
|
80
|
+
primary = error;
|
|
81
|
+
failed = true;
|
|
82
|
+
}
|
|
83
|
+
{
|
|
84
|
+
const errors = [];
|
|
85
|
+
try {
|
|
86
|
+
await archive?.close();
|
|
87
|
+
} catch (error) {
|
|
88
|
+
errors.push(error);
|
|
89
|
+
}
|
|
90
|
+
try {
|
|
91
|
+
await scratch?.close();
|
|
92
|
+
} catch (error) {
|
|
93
|
+
errors.push(error);
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
await input.close();
|
|
97
|
+
} catch (error) {
|
|
98
|
+
errors.push(error);
|
|
99
|
+
}
|
|
100
|
+
if (errors.length) {
|
|
101
|
+
if (failed) errors.unshift(primary);
|
|
102
|
+
if (errors.length === 1) throw errors[0];
|
|
103
|
+
throw new AggregateError(errors, "Python source archive cleanup failed");
|
|
104
|
+
}
|
|
105
|
+
if (failed) throw primary;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// packages/safe-bash-command-python/src/source-zip.ts
|
|
110
|
+
async function extractPythonSourceZip(source, directory, maxBytes, context, metadata) {
|
|
111
|
+
if (maxBytes !== Infinity && (!Number.isSafeInteger(maxBytes) || maxBytes < 0)) throw new RangeError("Invalid Python source archive size limit");
|
|
112
|
+
if (!context.fs.writeStream) throw new Error("Python source archives require streaming writes");
|
|
113
|
+
const input = await openPythonPackageFile(context, source, maxBytes);
|
|
114
|
+
if (!input) throw new Error("Python source archives require retained reads");
|
|
115
|
+
await extractPythonSourceZipFile(input, directory, maxBytes, context, void 0, !(metadata?.filename ?? source).endsWith(".whl"));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export {
|
|
119
|
+
splitPythonSourcePath,
|
|
120
|
+
pythonSourceZipSize,
|
|
121
|
+
extractPythonSourceZipFile,
|
|
122
|
+
extractPythonSourceZip
|
|
123
|
+
};
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
nodeFor,
|
|
3
3
|
selected,
|
|
4
4
|
validateSelection
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YODHIRPW.js";
|
|
6
6
|
import {
|
|
7
7
|
attr,
|
|
8
8
|
child,
|
|
9
9
|
loadShared
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C23L4HZB.js";
|
|
11
11
|
import {
|
|
12
12
|
OfficeError
|
|
13
13
|
} from "./chunk-VJQ5OWS5.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
escape
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C23L4HZB.js";
|
|
4
4
|
import {
|
|
5
5
|
writePackageArchive
|
|
6
6
|
} from "./chunk-5KWEZV5H.js";
|
|
7
7
|
import {
|
|
8
8
|
buildSelectionIndex,
|
|
9
9
|
readSelectionIndex
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I2OKE2NI.js";
|
|
11
11
|
import {
|
|
12
12
|
readPackage
|
|
13
13
|
} from "./chunk-KVTZJBLM.js";
|
|
14
14
|
import {
|
|
15
15
|
parseXmlPart
|
|
16
16
|
} from "./chunk-YWP62BAZ.js";
|
|
17
|
-
import {
|
|
18
|
-
readRelationshipGraph
|
|
19
|
-
} from "./chunk-QMXOKYMJ.js";
|
|
20
17
|
import {
|
|
21
18
|
parseContentTypes
|
|
22
19
|
} from "./chunk-6ZHNKHQQ.js";
|
|
20
|
+
import {
|
|
21
|
+
readRelationshipGraph
|
|
22
|
+
} from "./chunk-QMXOKYMJ.js";
|
|
23
23
|
import {
|
|
24
24
|
relativePartReference
|
|
25
25
|
} from "./chunk-PZVFNPRC.js";
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-ITJDLFPW.js";
|
|
4
4
|
import {
|
|
5
5
|
openRetainedPresentationIndex
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-S3QYSI5E.js";
|
|
7
7
|
import {
|
|
8
8
|
RetainedOrder
|
|
9
9
|
} from "./chunk-7JTJQKIV.js";
|
|
10
10
|
import {
|
|
11
11
|
loadShared
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C23L4HZB.js";
|
|
13
13
|
import {
|
|
14
14
|
writePackageArchive
|
|
15
15
|
} from "./chunk-5KWEZV5H.js";
|
|
16
16
|
import {
|
|
17
17
|
openRetainedPresentationValidation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ATUZ7J3B.js";
|
|
19
19
|
import {
|
|
20
20
|
openRetainedContentTypes
|
|
21
21
|
} from "./chunk-O4H7HPMP.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-ITJDLFPW.js";
|
|
7
7
|
import {
|
|
8
8
|
openRetainedPresentationIndex
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-S3QYSI5E.js";
|
|
10
10
|
import {
|
|
11
11
|
stageRetainedOutput,
|
|
12
12
|
streamJson
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
} from "./chunk-5KWEZV5H.js";
|
|
17
17
|
import {
|
|
18
18
|
SelectionError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-I2OKE2NI.js";
|
|
20
20
|
import {
|
|
21
21
|
readPackage
|
|
22
22
|
} from "./chunk-KVTZJBLM.js";
|
|
23
23
|
import {
|
|
24
24
|
openRetainedPresentationValidation,
|
|
25
25
|
validatePresentation
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ATUZ7J3B.js";
|
|
27
27
|
import {
|
|
28
28
|
dialects
|
|
29
29
|
} from "./chunk-P3LHQOX7.js";
|
|
@@ -34,12 +34,12 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
parseXmlPart
|
|
36
36
|
} from "./chunk-YWP62BAZ.js";
|
|
37
|
-
import {
|
|
38
|
-
readRelationshipGraph
|
|
39
|
-
} from "./chunk-QMXOKYMJ.js";
|
|
40
37
|
import {
|
|
41
38
|
parseContentTypes
|
|
42
39
|
} from "./chunk-6ZHNKHQQ.js";
|
|
40
|
+
import {
|
|
41
|
+
readRelationshipGraph
|
|
42
|
+
} from "./chunk-QMXOKYMJ.js";
|
|
43
43
|
import {
|
|
44
44
|
packageUri,
|
|
45
45
|
partName
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SlideTransferBudget
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y7UXJ77P.js";
|
|
4
4
|
import {
|
|
5
5
|
importSelectedSlides
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CIYGC7WU.js";
|
|
7
7
|
import {
|
|
8
8
|
writePackageArchive
|
|
9
9
|
} from "./chunk-5KWEZV5H.js";
|
|
10
10
|
import {
|
|
11
11
|
validatePresentation
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ATUZ7J3B.js";
|
|
13
13
|
import {
|
|
14
14
|
OfficeError
|
|
15
15
|
} from "./chunk-VJQ5OWS5.js";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// packages/safe-bash-command-python/src/package-file.ts
|
|
2
|
+
import { yieldTurn } from "../../safe-bash-contracts/yield.js";
|
|
3
|
+
import { sha256 } from "@noble/hashes/sha2.js";
|
|
4
|
+
import { compareIdentity, compareFileVersion } from "@poe-platform/safe-fs/core";
|
|
5
|
+
async function openPythonPackageFile({ fs, signal }, path, maxBytes, expected) {
|
|
6
|
+
const settings = { signal };
|
|
7
|
+
const capabilities = await fs.capabilitiesFor?.(path, settings) ?? fs.capabilities;
|
|
8
|
+
if (!capabilities.retainedRead || !fs.openReadFile) return void 0;
|
|
9
|
+
const file = await fs.openReadFile(path, settings);
|
|
10
|
+
try {
|
|
11
|
+
signal.throwIfAborted();
|
|
12
|
+
const state = { ...await file.stat(settings) };
|
|
13
|
+
if (expected && (compareIdentity(expected, state) !== "same" || !compareFileVersion(expected, state))) throw new Error("Canonical Python wheel changed");
|
|
14
|
+
if (state.type !== "file" || !Number.isSafeInteger(state.size) || state.size < 0) throw new Error("Invalid canonical Python wheel");
|
|
15
|
+
if (state.size > maxBytes) throw new Error("Canonical package exceeds maxDownloadBytes");
|
|
16
|
+
const check = async () => {
|
|
17
|
+
signal.throwIfAborted();
|
|
18
|
+
const current = await file.stat(settings);
|
|
19
|
+
if (compareIdentity(state, current) !== "same" || !compareFileVersion(state, current)) throw new Error("Canonical Python wheel changed");
|
|
20
|
+
};
|
|
21
|
+
const read = async (offset, length) => {
|
|
22
|
+
await check();
|
|
23
|
+
const count = Math.min(length, Math.max(0, state.size - offset));
|
|
24
|
+
if (!count) return new Uint8Array(0);
|
|
25
|
+
const bytes = Uint8Array.from(await file.read(offset, count, settings));
|
|
26
|
+
if (!bytes.length || bytes.length > count) throw new Error("Invalid canonical package read");
|
|
27
|
+
await check();
|
|
28
|
+
return bytes;
|
|
29
|
+
};
|
|
30
|
+
const hash = sha256.create();
|
|
31
|
+
for (let offset = 0, pulls = 0; offset < state.size; ) {
|
|
32
|
+
if (++pulls % 16 === 0) await yieldTurn(signal);
|
|
33
|
+
const bytes = await read(offset, 65536);
|
|
34
|
+
hash.update(bytes);
|
|
35
|
+
offset += bytes.length;
|
|
36
|
+
}
|
|
37
|
+
await check();
|
|
38
|
+
return { key: Array.from(hash.digest(), (byte) => byte.toString(16).padStart(2, "0")).join(""), size: state.size, read, close: () => file.close() };
|
|
39
|
+
} catch (error) {
|
|
40
|
+
await file.close();
|
|
41
|
+
throw error;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
openPythonPackageFile
|
|
47
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyTableUpdate,
|
|
3
3
|
readTable
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-565AAQTV.js";
|
|
5
5
|
import {
|
|
6
6
|
nodeFor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YODHIRPW.js";
|
|
8
8
|
import {
|
|
9
9
|
attr,
|
|
10
10
|
required
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C23L4HZB.js";
|
|
12
12
|
import {
|
|
13
13
|
parseXmlPart
|
|
14
14
|
} from "./chunk-YWP62BAZ.js";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
nodeFor,
|
|
3
3
|
selected,
|
|
4
4
|
validateSelection
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YODHIRPW.js";
|
|
6
6
|
import {
|
|
7
7
|
applyShapeUpdate,
|
|
8
8
|
readShape
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UQTU7H6T.js";
|
|
10
10
|
import {
|
|
11
11
|
Length
|
|
12
12
|
} from "./chunk-GNVAW6NL.js";
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
child,
|
|
16
16
|
loadShared,
|
|
17
17
|
required
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-C23L4HZB.js";
|
|
19
19
|
import {
|
|
20
20
|
SelectionError,
|
|
21
21
|
readSelectionIndex
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-I2OKE2NI.js";
|
|
23
23
|
import {
|
|
24
24
|
parseXmlPart
|
|
25
25
|
} from "./chunk-YWP62BAZ.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-ZS4J5B6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
ShapeIdAllocator
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DBEJMI7J.js";
|
|
10
10
|
import {
|
|
11
11
|
child,
|
|
12
12
|
escape,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
nextRel,
|
|
15
15
|
relPart,
|
|
16
16
|
required
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-C23L4HZB.js";
|
|
18
18
|
import {
|
|
19
19
|
SelectionError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-I2OKE2NI.js";
|
|
21
21
|
import {
|
|
22
22
|
parseXmlPart
|
|
23
23
|
} from "./chunk-YWP62BAZ.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
drawingColorSchema,
|
|
3
3
|
drawingUpdateSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KCS25XUJ.js";
|
|
5
5
|
import {
|
|
6
6
|
MSO_LANGUAGE_ID
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZZKJPLIH.js";
|
|
8
8
|
import {
|
|
9
9
|
MSO_TEXT_UNDERLINE_TYPE,
|
|
10
10
|
validateTextRunOptions
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WNVBS4GV.js";
|
|
12
12
|
import {
|
|
13
13
|
validateDrawingUpdate
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CEKBIZGU.js";
|
|
15
15
|
import {
|
|
16
16
|
defineEnum,
|
|
17
17
|
defineXmlEnum
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PAS4YSNN.js";
|
|
19
19
|
import {
|
|
20
20
|
Length
|
|
21
21
|
} from "./chunk-GNVAW6NL.js";
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
readConnector,
|
|
5
5
|
removeDrawingObjects,
|
|
6
6
|
validateConnectorUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VP7R7HKY.js";
|
|
8
8
|
import {
|
|
9
9
|
nodeFor,
|
|
10
10
|
selected,
|
|
11
11
|
validateSelection
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YODHIRPW.js";
|
|
13
13
|
import {
|
|
14
14
|
ShapeIdAllocator
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DBEJMI7J.js";
|
|
16
16
|
import {
|
|
17
17
|
child,
|
|
18
18
|
loadShared,
|
|
19
19
|
required
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-C23L4HZB.js";
|
|
21
21
|
import {
|
|
22
22
|
SelectionError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-I2OKE2NI.js";
|
|
24
24
|
import {
|
|
25
25
|
OfficeError
|
|
26
26
|
} from "./chunk-VJQ5OWS5.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-ZS4J5B6Y.js";
|
|
4
4
|
import {
|
|
5
5
|
ShapeIdAllocator
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DBEJMI7J.js";
|
|
7
7
|
import {
|
|
8
8
|
child,
|
|
9
9
|
escape,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
nextRel,
|
|
12
12
|
relPart,
|
|
13
13
|
required
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-C23L4HZB.js";
|
|
15
15
|
import {
|
|
16
16
|
SelectionError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-I2OKE2NI.js";
|
|
18
18
|
import {
|
|
19
19
|
parseXmlPart
|
|
20
20
|
} from "./chunk-YWP62BAZ.js";
|
|
@@ -32,16 +32,16 @@ import { snapshotFormats as Xe } from "../../spreadsheet-engine/codecs/format-pr
|
|
|
32
32
|
import { createRegistry as Be } from "../../spreadsheet-engine/index.js";
|
|
33
33
|
import { defaultSsconvertLimits as Si } from "../../spreadsheet-engine/index.js";
|
|
34
34
|
var te = { id: "Gnumeric_applix", services: [{ id: "applix", direction: "read", read: async (e, t) => (await import("./applix-E53OK5XT-ZW5UQHCH.js")).readApplix(e, t), probeContent: async (e, t) => (await import("./applix-E53OK5XT-ZW5UQHCH.js")).probeApplix(e, t), description: "Applix (*.as)", extensions: ["as"], mimeTypes: ["application/x-applix-spreadsheet"], probePriority: 100, contentProbe: true }], source: "plugins/applix/plugin.xml.in" };
|
|
35
|
-
var re = { id: "Gnumeric_dif", services: [{ id: "dif", direction: "read", read: async (e, t) => (await import("./dif-BXKPQOCO-
|
|
35
|
+
var re = { id: "Gnumeric_dif", services: [{ id: "dif", direction: "read", read: async (e, t) => (await import("./dif-BXKPQOCO-4KB3RC6G.js")).readDif(e, t), description: "Data Interchange Format (*.dif)", extensions: ["dif"], probePriority: 1 }, { id: "dif", direction: "write", write: async (e, t, i) => (await import("./dif-BXKPQOCO-4KB3RC6G.js")).writeDif(e, t, i), description: "Data Interchange Format (*.dif)", extensions: ["dif"], formatLevel: "manual_remember", saveScope: "sheet", selectionSource: "view" }], source: "plugins/dif/plugin.xml.in" };
|
|
36
36
|
var Qe = ["xor", "rc4", ...[false, true].flatMap((e) => [40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128].map((t) => `rc4-cryptoapi-${t}${e ? "-properties" : ""}`))];
|
|
37
37
|
var ie = ["xor"];
|
|
38
|
-
var W = { id: "Gnumeric_Excel", source: "plugins/excel/plugin.xml.in", services: [{ id: "excel", direction: "read", readWorkbookSource: async (...e) => (await import("./biff-AYJZR2YV-
|
|
39
|
-
yield* (await import("./biff-AYJZR2YV-
|
|
40
|
-
}, labelRanges: true, exportOptionRules: { encryption: { kind: "enum", values: Qe } }, direction: "write", description: "MS Excel\u2122 97/2000/XP", extensions: ["xls"], mimeTypes: ["application/vnd.ms-excel"], formatLevel: "auto", defaultSaverPriority: 1 }, { id: "excel_biff7", write: async (...e) => (await import("./biff-AYJZR2YV-
|
|
41
|
-
yield* (await import("./biff-AYJZR2YV-
|
|
42
|
-
}, labelRanges: true, exportOptionRules: { encryption: { kind: "enum", values: ie } }, direction: "write", description: "MS Excel\u2122 5.0/95", extensions: ["xls"], mimeTypes: ["application/vnd.ms-excel"], formatLevel: "auto" }, { id: "excel_dsf", write: async (...e) => (await import("./biff-AYJZR2YV-
|
|
43
|
-
yield* (await import("./biff-AYJZR2YV-
|
|
44
|
-
}, labelRanges: true, exportOptionRules: { encryption: { kind: "enum", values: ie } }, direction: "write", description: "MS Excel\u2122 97/2000/XP & 5.0/95", extensions: ["xls"], mimeTypes: ["application/vnd.ms-excel"], formatLevel: "auto" }, { id: "excel_enc", direction: "read", read: async (...e) => (await import("./biff-AYJZR2YV-
|
|
38
|
+
var W = { id: "Gnumeric_Excel", source: "plugins/excel/plugin.xml.in", services: [{ id: "excel", direction: "read", readWorkbookSource: async (...e) => (await import("./biff-AYJZR2YV-2BK47I2W.js")).readBiffWorkbookSource(...e), readSource: async (...e) => (await import("./biff-AYJZR2YV-2BK47I2W.js")).readBiff(...e), probeSource: async (...e) => (await import("./biff-AYJZR2YV-2BK47I2W.js")).probeBiff(...e), read: async (...e) => (await import("./biff-AYJZR2YV-2BK47I2W.js")).readBiff(...e), probeContent: async (...e) => (await import("./biff-AYJZR2YV-2BK47I2W.js")).probeBiff(...e), description: "MS Excel\u2122 (*.xls)", extensions: ["xls", "xlw", "xlt"], mimeTypes: ["application/vnd.ms-excel", "application/excel", "application/msexcel", "application/x-excel", "application/x-ms-excel", "application/x-msexcel", "application/x-xls", "application/xls", "application/x-dos_ms_excel", "zz-application/zz-winassoc-xls"], probePriority: 100, contentProbe: true }, { id: "excel_biff8", write: async (...e) => (await import("./biff-AYJZR2YV-2BK47I2W.js")).createBiffWriter(8)(...e), writeStream: async function* (...e) {
|
|
39
|
+
yield* (await import("./biff-AYJZR2YV-2BK47I2W.js")).createBiffStreamWriter(8)(...e);
|
|
40
|
+
}, labelRanges: true, exportOptionRules: { encryption: { kind: "enum", values: Qe } }, direction: "write", description: "MS Excel\u2122 97/2000/XP", extensions: ["xls"], mimeTypes: ["application/vnd.ms-excel"], formatLevel: "auto", defaultSaverPriority: 1 }, { id: "excel_biff7", write: async (...e) => (await import("./biff-AYJZR2YV-2BK47I2W.js")).createBiffWriter(7)(...e), writeStream: async function* (...e) {
|
|
41
|
+
yield* (await import("./biff-AYJZR2YV-2BK47I2W.js")).createBiffStreamWriter(7)(...e);
|
|
42
|
+
}, labelRanges: true, exportOptionRules: { encryption: { kind: "enum", values: ie } }, direction: "write", description: "MS Excel\u2122 5.0/95", extensions: ["xls"], mimeTypes: ["application/vnd.ms-excel"], formatLevel: "auto" }, { id: "excel_dsf", write: async (...e) => (await import("./biff-AYJZR2YV-2BK47I2W.js")).createBiffWriter("dsf")(...e), writeStream: async function* (...e) {
|
|
43
|
+
yield* (await import("./biff-AYJZR2YV-2BK47I2W.js")).createBiffStreamWriter("dsf")(...e);
|
|
44
|
+
}, labelRanges: true, exportOptionRules: { encryption: { kind: "enum", values: ie } }, direction: "write", description: "MS Excel\u2122 97/2000/XP & 5.0/95", extensions: ["xls"], mimeTypes: ["application/vnd.ms-excel"], formatLevel: "auto" }, { id: "excel_enc", direction: "read", read: async (...e) => (await import("./biff-AYJZR2YV-2BK47I2W.js")).readBiff(...e), description: "MS Excel\u2122 (*.xls) requiring encoding specification", extensions: [], probePriority: 200, encodingDependent: true }] };
|
|
45
45
|
var oe = { id: "Gnumeric_Excel", source: "plugins/excel/plugin.xml.in", services: [{ id: "xlsx", direction: "read", probeContent: async (e, t) => (await import("./xlsx-RE54MFCS-4UZ5W3U7.js")).probeXlsx(e, t), probeSource: async (e, t) => (await import("./xlsx-RE54MFCS-4UZ5W3U7.js")).probeXlsx(e, t), readWorkbookSource: async (e, t) => (await import("./xlsx-RE54MFCS-4UZ5W3U7.js")).readXlsx(e, t, true), readSource: async (e, t) => (await import("./xlsx-RE54MFCS-4UZ5W3U7.js")).readXlsx(e, t), read: async (e, t) => (await import("./xlsx-RE54MFCS-4UZ5W3U7.js")).readXlsx(e, t), description: "ECMA 376 / Office Open XML [MS Excel\u2122 2007/2010] (*.xlsx)", extensions: ["xlsx", "xltx", "xlsb", "xlsm", "xltm"], mimeTypes: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.spreadsheetml.template"], probePriority: 100, contentProbe: true }, { id: "xlsx", direction: "write", sourceAxes: true, write: async (e, t, i) => (await import("./xlsx-RE54MFCS-4UZ5W3U7.js")).createXlsxWriter("2006")(e, t, i), writeStream: async function* (e, t, i) {
|
|
46
46
|
yield* (await import("./xlsx-RE54MFCS-4UZ5W3U7.js")).createXlsxStreamWriter("2006")(e, t, i);
|
|
47
47
|
}, writeWorkbookSource: async function* (e, t, i) {
|
|
@@ -685,7 +685,7 @@ var Ue = (e, t, i, r) => N([e.metadata, t, i, r], { separator: ",", quote: '"',
|
|
|
685
685
|
var Ne = (...e) => Re(Z(...e));
|
|
686
686
|
var De = (...e) => Re(Y(...e));
|
|
687
687
|
var K = { id: "Gnumeric_stf", source: "src/stf.c", services: [{ id: "stf_csvtab", direction: "read", description: "Comma or tab separated values (CSV/TSV)", extensions: ["csv", "tsv", "txt"], mimeTypes: ["application/tab-separated-values", "text/comma-separated-values", "text/csv", "text/x-csv", "text/spreadsheet", "text/tab-separated-values"], probePriority: 0, contentProbe: true, encodingDependent: true, probeName: H, probeContent: I, probeSource: Ee, read: Pe, readSource: We, readWorkbookSource: Le }, { id: "stf_assistant", direction: "read", description: "Text import (configurable)", extensions: [], mimeTypes: ["text/plain", "text/csv", "text/x-csv", "text/comma-separated-values", "text/tab-separated-values"], probePriority: 0, encodingDependent: true, interactiveOnly: true, read: Fe }, { id: "stf_assistant", direction: "write", sourceAxes: true, description: "Text (configurable)", extensions: ["txt"], byteStrings: "utf8-text", sheetSelection: true, honorsExportRange: true, write: Ne, writeStream: Z, writeWorkbookSource: qe, exportOptionRules: { eol: { kind: "enum", values: ["unix", "mac", "windows"], asciiCaseInsensitive: true, error: "eol must be one of unix, mac, and windows" }, charset: { kind: "string" }, locale: { kind: "string" }, quote: { kind: "string" }, separator: { kind: "string" }, format: { kind: "enum", values: ["automatic", "raw", "preserve", "GNM_STF_FORMAT_AUTO", "GNM_STF_FORMAT_RAW", "GNM_STF_FORMAT_PRESERVE"] }, "transliterate-mode": { kind: "enum", values: ["transliterate", "escape", "GNM_STF_TRANSLITERATE_MODE_TRANS", "GNM_STF_TRANSLITERATE_MODE_ESCAPE"] }, "quoting-mode": { kind: "enum", values: ["never", "auto", "always", "GSF_OUTPUT_CSV_QUOTING_MODE_NEVER", "GSF_OUTPUT_CSV_QUOTING_MODE_AUTO", "GSF_OUTPUT_CSV_QUOTING_MODE_ALWAYS"] }, "quoting-on-whitespace": { kind: "boolean" } }, source: "src/stf-export.c:774" }, { id: "stf_csv", direction: "write", sourceAxes: true, description: "Comma separated values (CSV)", extensions: ["csv"], byteStrings: "utf8-text", formatLevel: "manual_remember", saveScope: "sheet", sheetSelection: true, honorsExportRange: true, write: De, writeStream: Y, writeWorkbookSource: Ue }] };
|
|
688
|
-
var je = { id: "Gnumeric_sylk", services: [{ id: "sylk", direction: "read", probeContent: async (e, t) => (await import("./sylk-25D7TL2Y-
|
|
688
|
+
var je = { id: "Gnumeric_sylk", services: [{ id: "sylk", direction: "read", probeContent: async (e, t) => (await import("./sylk-25D7TL2Y-RU6ANKGT.js")).probeSylk(e, t), read: async (e, t) => (await import("./sylk-25D7TL2Y-RU6ANKGT.js")).readSylk(e, t), description: "MultiPlan (SYLK)", extensions: ["slk", "sylk"], mimeTypes: ["application/x-sylk"], probePriority: 1, contentProbe: true }, { id: "sylk", direction: "write", write: async (e, t, i) => (await import("./sylk-25D7TL2Y-RU6ANKGT.js")).writeSylk(e, t, i), description: "MultiPlan (SYLK)", extensions: ["slk"], mimeTypes: ["application/x-sylk"], formatLevel: "auto", saveScope: "sheet", selectionSource: "view" }], source: "plugins/sylk/plugin.xml.in" };
|
|
689
689
|
var J = { id: "Gnumeric_xbase", services: [{ id: "xbase", direction: "read", read: async (e, t) => (await import("./xbase-SNLCY6IW-DY6FAR6V.js")).readXbase(e, t), description: "Xbase (*.dbf) file format", extensions: ["dbf"], mimeTypes: ["application/dbase", "application/dbf", "application/x-dbase", "application/x-dbf", "application/x-xbase", "zz-application/zz-winassoc-dbf"], probePriority: 100 }], source: "plugins/xbase/plugin.xml.in" };
|
|
690
690
|
var ze = { id: "Gnumeric_XmlIO", source: "src/xml-sax-write.c", services: [{ id: "sax", direction: "read", description: "Gnumeric XML (*.gnumeric)", extensions: ["gnumeric", "xml"], filenameSuffixes: ["xml.gz"], mimeTypes: ["application/x-gnumeric"], contentProbe: true, source: "src/xml-sax-read.c:3901", probeSource: async (...e) => (await import("./gnumeric-UJPXWBVR-YPXTNEDZ.js")).probeGnumeric(...e), readWorkbookSource: async (e, t) => (await import("./gnumeric-UJPXWBVR-YPXTNEDZ.js")).readGnumericWorkbookSource(e, t), readSource: async (e, t) => (await import("./gnumeric-UJPXWBVR-YPXTNEDZ.js")).readGnumeric(e, t), probeContent: async (...e) => (await import("./gnumeric-UJPXWBVR-YPXTNEDZ.js")).probeGnumeric(...e), read: async (e, t) => (await import("./gnumeric-UJPXWBVR-YPXTNEDZ.js")).readGnumeric(e, t) }, { id: "sax", direction: "write", sourceAxes: true, description: "Gnumeric XML (*.gnumeric)", extensions: ["gnumeric"], mimeTypes: ["application/x-gnumeric"], byteStrings: "formula-only", formatLevel: "auto", defaultSaverPriority: 50, write: async (e, t, i) => (await import("./gnumeric-UJPXWBVR-YPXTNEDZ.js")).writeCompressedGnumeric(e, t, i), writeStream: async function* (e, t, i) {
|
|
691
691
|
yield* (await import("./gnumeric-UJPXWBVR-YPXTNEDZ.js")).writeCompressedGnumericStream(e, t, i);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
initializePlaywrightWorkspace
|
|
3
|
+
} from "./chunk-SPZR6J6S.js";
|
|
1
4
|
import {
|
|
2
5
|
createPlaywrightSessionSelection
|
|
3
6
|
} from "./chunk-MAFCR5HR.js";
|
|
4
7
|
import {
|
|
5
8
|
capturePlaywrightTargetScreenshot
|
|
6
9
|
} from "./chunk-RBUKK6QE.js";
|
|
7
|
-
import {
|
|
8
|
-
initializePlaywrightWorkspace
|
|
9
|
-
} from "./chunk-SPZR6J6S.js";
|
|
10
10
|
import {
|
|
11
11
|
capturePlaywrightScreenshot
|
|
12
12
|
} from "./chunk-G3OKGAWN.js";
|
|
@@ -35,6 +35,13 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
parsePlaywrightOperationOutcome
|
|
37
37
|
} from "./chunk-SA3VOWEB.js";
|
|
38
|
+
import {
|
|
39
|
+
parseInvocation,
|
|
40
|
+
validatePlaywrightSessionName
|
|
41
|
+
} from "./chunk-4RC7R5ND.js";
|
|
42
|
+
import {
|
|
43
|
+
findPlaywrightSnapshot
|
|
44
|
+
} from "./chunk-VWGVKAUJ.js";
|
|
38
45
|
import {
|
|
39
46
|
generatedPlaywrightLocator
|
|
40
47
|
} from "./chunk-XXPRSZ6H.js";
|
|
@@ -45,23 +52,22 @@ import {
|
|
|
45
52
|
updatePlaywrightHighlight
|
|
46
53
|
} from "./chunk-J5AYTMPX.js";
|
|
47
54
|
import {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
55
|
+
PlaywrightCheckpointError,
|
|
56
|
+
PlaywrightStorageReadError
|
|
57
|
+
} from "./chunk-YTYMDDBB.js";
|
|
51
58
|
import {
|
|
52
59
|
collectPlaywrightDownloads,
|
|
53
60
|
observePlaywrightDownloads
|
|
54
61
|
} from "./chunk-D43FDVLM.js";
|
|
55
62
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./chunk-
|
|
63
|
+
executePlaywrightAbility
|
|
64
|
+
} from "./chunk-2KMNVJB7.js";
|
|
58
65
|
import {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
} from "./chunk-YTYMDDBB.js";
|
|
66
|
+
createPlaywrightCommandBudget
|
|
67
|
+
} from "./chunk-GYGORRXA.js";
|
|
62
68
|
import {
|
|
63
69
|
registerPlaywrightAbilities
|
|
64
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-SUYSZJI3.js";
|
|
65
71
|
import {
|
|
66
72
|
flushPlaywrightTrace,
|
|
67
73
|
preparePlaywrightTraceRelease
|
|
@@ -97,12 +103,6 @@ import {
|
|
|
97
103
|
playwrightLocatorSelector,
|
|
98
104
|
setPlaywrightTestIdAttribute
|
|
99
105
|
} from "./chunk-SSIG3FO3.js";
|
|
100
|
-
import {
|
|
101
|
-
executePlaywrightAbility
|
|
102
|
-
} from "./chunk-2KMNVJB7.js";
|
|
103
|
-
import {
|
|
104
|
-
createPlaywrightCommandBudget
|
|
105
|
-
} from "./chunk-GYGORRXA.js";
|
|
106
106
|
import {
|
|
107
107
|
PlaywrightResourceLimitError,
|
|
108
108
|
PlaywrightSnapshotLimitError,
|