@fnndsc/brasa 0.57.4 → 0.58.0
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/api/models.d.ts +2 -3
- package/dist/api/models.js.map +1 -1
- package/dist/buildinfo.json +1 -1
- package/dist/builtins/argumentTokens.js +25 -6
- package/dist/builtins/argumentTokens.js.map +1 -1
- package/dist/builtins/berth/berth.d.ts +0 -14
- package/dist/builtins/berth/berth.js +255 -88
- package/dist/builtins/berth/berth.js.map +1 -1
- package/dist/builtins/berth/berthClose.d.ts +66 -1
- package/dist/builtins/berth/berthClose.js +312 -26
- package/dist/builtins/berth/berthClose.js.map +1 -1
- package/dist/builtins/berth/berthClosed.d.ts +212 -0
- package/dist/builtins/berth/berthClosed.js +231 -0
- package/dist/builtins/berth/berthClosed.js.map +1 -0
- package/dist/builtins/berth/berthCube.js +27 -6
- package/dist/builtins/berth/berthCube.js.map +1 -1
- package/dist/builtins/berth/berthDisk.js +1 -1
- package/dist/builtins/berth/berthDisk.js.map +1 -1
- package/dist/builtins/berth/berthProcesses.js +15 -3
- package/dist/builtins/berth/berthProcesses.js.map +1 -1
- package/dist/builtins/berth/berthRecord.d.ts +14 -2
- package/dist/builtins/berth/berthRecord.js +20 -5
- package/dist/builtins/berth/berthRecord.js.map +1 -1
- package/dist/builtins/berth/berthState.d.ts +26 -6
- package/dist/builtins/berth/berthState.js +47 -13
- package/dist/builtins/berth/berthState.js.map +1 -1
- package/dist/builtins/debug.d.ts +0 -8
- package/dist/builtins/debug.js +1 -12
- package/dist/builtins/debug.js.map +1 -1
- package/dist/builtins/executable.js +102 -75
- package/dist/builtins/executable.js.map +1 -1
- package/dist/builtins/feedTotals.js +30 -25
- package/dist/builtins/feedTotals.js.map +1 -1
- package/dist/builtins/fs/acl.args.d.ts +3 -10
- package/dist/builtins/fs/acl.args.js +16 -24
- package/dist/builtins/fs/acl.args.js.map +1 -1
- package/dist/builtins/fs/acl.d.ts +0 -37
- package/dist/builtins/fs/acl.js +36 -58
- package/dist/builtins/fs/acl.js.map +1 -1
- package/dist/builtins/fs/archive.js +4 -7
- package/dist/builtins/fs/archive.js.map +1 -1
- package/dist/builtins/fs/cat.d.ts +0 -16
- package/dist/builtins/fs/cat.js +163 -96
- package/dist/builtins/fs/cat.js.map +1 -1
- package/dist/builtins/fs/cd.js +23 -5
- package/dist/builtins/fs/cd.js.map +1 -1
- package/dist/builtins/fs/configWrite.d.ts +0 -8
- package/dist/builtins/fs/configWrite.js +33 -46
- package/dist/builtins/fs/configWrite.js.map +1 -1
- package/dist/builtins/fs/cp.d.ts +6 -10
- package/dist/builtins/fs/cp.js +83 -86
- package/dist/builtins/fs/cp.js.map +1 -1
- package/dist/builtins/fs/deliveryIntent.d.ts +24 -0
- package/dist/builtins/fs/deliveryIntent.js +182 -0
- package/dist/builtins/fs/deliveryIntent.js.map +1 -0
- package/dist/builtins/fs/deliveryMatch.d.ts +138 -0
- package/dist/builtins/fs/deliveryMatch.js +135 -0
- package/dist/builtins/fs/deliveryMatch.js.map +1 -0
- package/dist/builtins/fs/destination.d.ts +37 -1
- package/dist/builtins/fs/destination.js +80 -0
- package/dist/builtins/fs/destination.js.map +1 -1
- package/dist/builtins/fs/download.d.ts +19 -8
- package/dist/builtins/fs/download.js +142 -72
- package/dist/builtins/fs/download.js.map +1 -1
- package/dist/builtins/fs/du.d.ts +0 -8
- package/dist/builtins/fs/du.js +23 -20
- package/dist/builtins/fs/du.js.map +1 -1
- package/dist/builtins/fs/edit.js +117 -50
- package/dist/builtins/fs/edit.js.map +1 -1
- package/dist/builtins/fs/entries.d.ts +38 -0
- package/dist/builtins/fs/entries.js +48 -1
- package/dist/builtins/fs/entries.js.map +1 -1
- package/dist/builtins/fs/find.d.ts +1 -1
- package/dist/builtins/fs/find.js +462 -271
- package/dist/builtins/fs/find.js.map +1 -1
- package/dist/builtins/fs/ls.d.ts +2 -8
- package/dist/builtins/fs/ls.js +144 -93
- package/dist/builtins/fs/ls.js.map +1 -1
- package/dist/builtins/fs/mkdir.d.ts +2 -7
- package/dist/builtins/fs/mkdir.js +110 -58
- package/dist/builtins/fs/mkdir.js.map +1 -1
- package/dist/builtins/fs/mv.d.ts +7 -10
- package/dist/builtins/fs/mv.js +155 -100
- package/dist/builtins/fs/mv.js.map +1 -1
- package/dist/builtins/fs/pull.js +155 -92
- package/dist/builtins/fs/pull.js.map +1 -1
- package/dist/builtins/fs/pwd.d.ts +0 -7
- package/dist/builtins/fs/pwd.js +0 -12
- package/dist/builtins/fs/pwd.js.map +1 -1
- package/dist/builtins/fs/rm.d.ts +6 -7
- package/dist/builtins/fs/rm.js +364 -174
- package/dist/builtins/fs/rm.js.map +1 -1
- package/dist/builtins/fs/rmdir.d.ts +0 -7
- package/dist/builtins/fs/rmdir.js +40 -21
- package/dist/builtins/fs/rmdir.js.map +1 -1
- package/dist/builtins/fs/touch.d.ts +0 -7
- package/dist/builtins/fs/touch.js +14 -27
- package/dist/builtins/fs/touch.js.map +1 -1
- package/dist/builtins/fs/transferJobs.d.ts +12 -0
- package/dist/builtins/fs/transferJobs.js +19 -0
- package/dist/builtins/fs/transferJobs.js.map +1 -1
- package/dist/builtins/fs/tree.d.ts +0 -8
- package/dist/builtins/fs/tree.js +1 -12
- package/dist/builtins/fs/tree.js.map +1 -1
- package/dist/builtins/fs/upload.d.ts +0 -8
- package/dist/builtins/fs/upload.js +23 -20
- package/dist/builtins/fs/upload.js.map +1 -1
- package/dist/builtins/fs/url.d.ts +14 -2
- package/dist/builtins/fs/url.js +6 -8
- package/dist/builtins/fs/url.js.map +1 -1
- package/dist/builtins/fs/writeReport.d.ts +40 -0
- package/dist/builtins/fs/writeReport.js +71 -0
- package/dist/builtins/fs/writeReport.js.map +1 -0
- package/dist/builtins/fs/xattr.args.d.ts +14 -13
- package/dist/builtins/fs/xattr.args.js +3 -24
- package/dist/builtins/fs/xattr.args.js.map +1 -1
- package/dist/builtins/fs/xattr.d.ts +0 -25
- package/dist/builtins/fs/xattr.js +82 -65
- package/dist/builtins/fs/xattr.js.map +1 -1
- package/dist/builtins/games/bytes.d.ts +0 -55
- package/dist/builtins/games/bytes.js +95 -120
- package/dist/builtins/games/bytes.js.map +1 -1
- package/dist/builtins/games/chimes.d.ts +0 -36
- package/dist/builtins/games/chimes.js +58 -64
- package/dist/builtins/games/chimes.js.map +1 -1
- package/dist/builtins/games/chrislab.d.ts +0 -12
- package/dist/builtins/games/chrislab.js +0 -14
- package/dist/builtins/games/chrislab.js.map +1 -1
- package/dist/builtins/games/cowsay.d.ts +0 -24
- package/dist/builtins/games/cowsay.js +0 -29
- package/dist/builtins/games/cowsay.js.map +1 -1
- package/dist/builtins/games/figlet.d.ts +0 -24
- package/dist/builtins/games/figlet.js +0 -29
- package/dist/builtins/games/figlet.js.map +1 -1
- package/dist/builtins/games/lab.d.ts +0 -36
- package/dist/builtins/games/lab.js +0 -43
- package/dist/builtins/games/lab.js.map +1 -1
- package/dist/builtins/games/lolcat.d.ts +0 -12
- package/dist/builtins/games/lolcat.js +2 -17
- package/dist/builtins/games/lolcat.js.map +1 -1
- package/dist/builtins/games/numbers.d.ts +0 -60
- package/dist/builtins/games/numbers.js +0 -71
- package/dist/builtins/games/numbers.js.map +1 -1
- package/dist/builtins/games/play.d.ts +0 -36
- package/dist/builtins/games/play.js +47 -58
- package/dist/builtins/games/play.js.map +1 -1
- package/dist/builtins/games/qr.d.ts +0 -12
- package/dist/builtins/games/qr.js +189 -68
- package/dist/builtins/games/qr.js.map +1 -1
- package/dist/builtins/games/show.d.ts +0 -73
- package/dist/builtins/games/show.js +0 -85
- package/dist/builtins/games/show.js.map +1 -1
- package/dist/builtins/games/sky.d.ts +0 -36
- package/dist/builtins/games/sky.js +25 -45
- package/dist/builtins/games/sky.js.map +1 -1
- package/dist/builtins/games/text.d.ts +0 -72
- package/dist/builtins/games/text.js +0 -85
- package/dist/builtins/games/text.js.map +1 -1
- package/dist/builtins/games/trek.d.ts +0 -12
- package/dist/builtins/games/trek.js +0 -15
- package/dist/builtins/games/trek.js.map +1 -1
- package/dist/builtins/games/wtf.d.ts +0 -12
- package/dist/builtins/games/wtf.js +0 -15
- package/dist/builtins/games/wtf.js.map +1 -1
- package/dist/builtins/help.d.ts +0 -19
- package/dist/builtins/help.js +56 -39
- package/dist/builtins/help.js.map +1 -1
- package/dist/builtins/helpSections.js +13 -1
- package/dist/builtins/helpSections.js.map +1 -1
- package/dist/builtins/index.d.ts +1 -1
- package/dist/builtins/index.js +1 -1
- package/dist/builtins/index.js.map +1 -1
- package/dist/builtins/net/connect.d.ts +1 -8
- package/dist/builtins/net/connect.js +2 -13
- package/dist/builtins/net/connect.js.map +1 -1
- package/dist/builtins/net/cubepath.js +30 -20
- package/dist/builtins/net/cubepath.js.map +1 -1
- package/dist/builtins/net/logout.d.ts +0 -8
- package/dist/builtins/net/logout.js +1 -12
- package/dist/builtins/net/logout.js.map +1 -1
- package/dist/builtins/net/netstat.d.ts +0 -8
- package/dist/builtins/net/netstat.js +1 -12
- package/dist/builtins/net/netstat.js.map +1 -1
- package/dist/builtins/net/pacs.d.ts +3 -17
- package/dist/builtins/net/pacs.js +50 -42
- package/dist/builtins/net/pacs.js.map +1 -1
- package/dist/builtins/net/pacsUtils.d.ts +0 -2
- package/dist/builtins/net/pacsUtils.js +67 -30
- package/dist/builtins/net/pacsUtils.js.map +1 -1
- package/dist/builtins/net/query.anon.d.ts +61 -0
- package/dist/builtins/net/query.anon.js +362 -0
- package/dist/builtins/net/query.anon.js.map +1 -0
- package/dist/builtins/net/query.args.d.ts +2 -1
- package/dist/builtins/net/query.args.js +1 -1
- package/dist/builtins/net/query.args.js.map +1 -1
- package/dist/builtins/net/query.cohort.d.ts +125 -0
- package/dist/builtins/net/query.cohort.js +267 -0
- package/dist/builtins/net/query.cohort.js.map +1 -0
- package/dist/builtins/net/query.csv.d.ts +26 -5
- package/dist/builtins/net/query.csv.js +61 -115
- package/dist/builtins/net/query.csv.js.map +1 -1
- package/dist/builtins/net/query.d.ts +27 -34
- package/dist/builtins/net/query.deliver.d.ts +96 -0
- package/dist/builtins/net/query.deliver.js +188 -0
- package/dist/builtins/net/query.deliver.js.map +1 -0
- package/dist/builtins/net/query.fanout.d.ts +32 -0
- package/dist/builtins/net/query.fanout.js +91 -0
- package/dist/builtins/net/query.fanout.js.map +1 -1
- package/dist/builtins/net/query.held.d.ts +60 -0
- package/dist/builtins/net/query.held.js +125 -0
- package/dist/builtins/net/query.held.js.map +1 -0
- package/dist/builtins/net/query.ignored.d.ts +3 -1
- package/dist/builtins/net/query.ignored.js +9 -3
- package/dist/builtins/net/query.ignored.js.map +1 -1
- package/dist/builtins/net/query.js +360 -634
- package/dist/builtins/net/query.js.map +1 -1
- package/dist/builtins/net/query.model.d.ts +15 -0
- package/dist/builtins/net/query.model.js +109 -46
- package/dist/builtins/net/query.model.js.map +1 -1
- package/dist/builtins/net/query.view.js +29 -8
- package/dist/builtins/net/query.view.js.map +1 -1
- package/dist/builtins/operandRuns.js +4 -3
- package/dist/builtins/operandRuns.js.map +1 -1
- package/dist/builtins/operands.js +97 -39
- package/dist/builtins/operands.js.map +1 -1
- package/dist/builtins/pluginExecute.js +311 -205
- package/dist/builtins/pluginExecute.js.map +1 -1
- package/dist/builtins/proc.d.ts +1 -13
- package/dist/builtins/proc.helpers.d.ts +0 -7
- package/dist/builtins/proc.helpers.js +0 -10
- package/dist/builtins/proc.helpers.js.map +1 -1
- package/dist/builtins/proc.js +159 -116
- package/dist/builtins/proc.js.map +1 -1
- package/dist/builtins/procWatch.d.ts +2 -2
- package/dist/builtins/procWatch.js +54 -13
- package/dist/builtins/procWatch.js.map +1 -1
- package/dist/builtins/res/compute.d.ts +0 -13
- package/dist/builtins/res/compute.js +0 -16
- package/dist/builtins/res/compute.js.map +1 -1
- package/dist/builtins/res/diagram.tree.js +36 -12
- package/dist/builtins/res/diagram.tree.js.map +1 -1
- package/dist/builtins/res/dicom.d.ts +24 -17
- package/dist/builtins/res/dicom.js +78 -79
- package/dist/builtins/res/dicom.js.map +1 -1
- package/dist/builtins/res/expect.d.ts +8 -17
- package/dist/builtins/res/expect.js +173 -101
- package/dist/builtins/res/expect.js.map +1 -1
- package/dist/builtins/res/feed.d.ts +0 -13
- package/dist/builtins/res/feed.diagram.js +89 -57
- package/dist/builtins/res/feed.diagram.js.map +1 -1
- package/dist/builtins/res/feed.js +61 -42
- package/dist/builtins/res/feed.js.map +1 -1
- package/dist/builtins/res/feed.tree.collapse.d.ts +0 -10
- package/dist/builtins/res/feed.tree.collapse.js +12 -5
- package/dist/builtins/res/feed.tree.collapse.js.map +1 -1
- package/dist/builtins/res/files.d.ts +0 -37
- package/dist/builtins/res/files.js +0 -44
- package/dist/builtins/res/files.js.map +1 -1
- package/dist/builtins/res/gather.d.ts +0 -13
- package/dist/builtins/res/gather.facts.js +24 -16
- package/dist/builtins/res/gather.facts.js.map +1 -1
- package/dist/builtins/res/gather.js +47 -36
- package/dist/builtins/res/gather.js.map +1 -1
- package/dist/builtins/res/gather.process.js +49 -15
- package/dist/builtins/res/gather.process.js.map +1 -1
- package/dist/builtins/res/gather.store.d.ts +4 -2
- package/dist/builtins/res/gather.store.js +43 -31
- package/dist/builtins/res/gather.store.js.map +1 -1
- package/dist/builtins/res/group.d.ts +0 -13
- package/dist/builtins/res/group.js +78 -40
- package/dist/builtins/res/group.js.map +1 -1
- package/dist/builtins/res/image.d.ts +0 -13
- package/dist/builtins/res/image.js +0 -15
- package/dist/builtins/res/image.js.map +1 -1
- package/dist/builtins/res/manifestRead.d.ts +65 -0
- package/dist/builtins/res/manifestRead.js +161 -0
- package/dist/builtins/res/manifestRead.js.map +1 -0
- package/dist/builtins/res/pipeline.d.ts +1 -1
- package/dist/builtins/res/pipeline.js +152 -103
- package/dist/builtins/res/pipeline.js.map +1 -1
- package/dist/builtins/res/pipeline.manifest.js +17 -7
- package/dist/builtins/res/pipeline.manifest.js.map +1 -1
- package/dist/builtins/res/play.d.ts +0 -13
- package/dist/builtins/res/play.js +367 -226
- package/dist/builtins/res/play.js.map +1 -1
- package/dist/builtins/res/plugin.d.ts +1 -13
- package/dist/builtins/res/plugin.info.js +36 -14
- package/dist/builtins/res/plugin.info.js.map +1 -1
- package/dist/builtins/res/plugin.js +1 -17
- package/dist/builtins/res/plugin.js.map +1 -1
- package/dist/builtins/res/plugin.sync.d.ts +3 -5
- package/dist/builtins/res/plugin.sync.js +175 -40
- package/dist/builtins/res/plugin.sync.js.map +1 -1
- package/dist/builtins/res/plugininstance.d.ts +0 -13
- package/dist/builtins/res/plugininstance.js +0 -16
- package/dist/builtins/res/plugininstance.js.map +1 -1
- package/dist/builtins/res/pluginmeta.d.ts +0 -13
- package/dist/builtins/res/pluginmeta.js +0 -16
- package/dist/builtins/res/pluginmeta.js.map +1 -1
- package/dist/builtins/res/record.d.ts +0 -13
- package/dist/builtins/res/record.js +2 -18
- package/dist/builtins/res/record.js.map +1 -1
- package/dist/builtins/res/runWait.js +32 -8
- package/dist/builtins/res/runWait.js.map +1 -1
- package/dist/builtins/res/tag.d.ts +0 -13
- package/dist/builtins/res/tag.js +0 -16
- package/dist/builtins/res/tag.js.map +1 -1
- package/dist/builtins/res/thumbnail.js +23 -8
- package/dist/builtins/res/thumbnail.js.map +1 -1
- package/dist/builtins/res/user.d.ts +0 -12
- package/dist/builtins/res/user.js +0 -17
- package/dist/builtins/res/user.js.map +1 -1
- package/dist/builtins/res/workflow.d.ts +0 -13
- package/dist/builtins/res/workflow.js +0 -16
- package/dist/builtins/res/workflow.js.map +1 -1
- package/dist/builtins/runEcho.js +2 -1
- package/dist/builtins/runEcho.js.map +1 -1
- package/dist/builtins/store.d.ts +0 -13
- package/dist/builtins/store.js +32 -32
- package/dist/builtins/store.js.map +1 -1
- package/dist/builtins/sys/apropos.d.ts +2 -27
- package/dist/builtins/sys/apropos.js +2 -32
- package/dist/builtins/sys/apropos.js.map +1 -1
- package/dist/builtins/sys/cal.d.ts +0 -12
- package/dist/builtins/sys/cal.js +0 -15
- package/dist/builtins/sys/cal.js.map +1 -1
- package/dist/builtins/sys/command.js +3 -7
- package/dist/builtins/sys/command.js.map +1 -1
- package/dist/builtins/sys/context.d.ts +0 -8
- package/dist/builtins/sys/context.js +1 -12
- package/dist/builtins/sys/context.js.map +1 -1
- package/dist/builtins/sys/date.d.ts +0 -12
- package/dist/builtins/sys/date.js +0 -15
- package/dist/builtins/sys/date.js.map +1 -1
- package/dist/builtins/sys/echo.d.ts +0 -12
- package/dist/builtins/sys/echo.js +54 -49
- package/dist/builtins/sys/echo.js.map +1 -1
- package/dist/builtins/sys/fortune.d.ts +0 -12
- package/dist/builtins/sys/fortune.js +0 -15
- package/dist/builtins/sys/fortune.js.map +1 -1
- package/dist/builtins/sys/grep.d.ts +14 -18
- package/dist/builtins/sys/grep.js +239 -114
- package/dist/builtins/sys/grep.js.map +1 -1
- package/dist/builtins/sys/hostGrants.d.ts +85 -0
- package/dist/builtins/sys/hostGrants.js +207 -0
- package/dist/builtins/sys/hostGrants.js.map +1 -0
- package/dist/builtins/sys/joblets.d.ts +0 -24
- package/dist/builtins/sys/joblets.js +0 -29
- package/dist/builtins/sys/joblets.js.map +1 -1
- package/dist/builtins/sys/motd.d.ts +0 -12
- package/dist/builtins/sys/motd.js +14 -21
- package/dist/builtins/sys/motd.js.map +1 -1
- package/dist/builtins/sys/notes.js +26 -16
- package/dist/builtins/sys/notes.js.map +1 -1
- package/dist/builtins/sys/physicalmode.d.ts +0 -8
- package/dist/builtins/sys/physicalmode.js +1 -12
- package/dist/builtins/sys/physicalmode.js.map +1 -1
- package/dist/builtins/sys/tasks.d.ts +0 -24
- package/dist/builtins/sys/tasks.js +30 -36
- package/dist/builtins/sys/tasks.js.map +1 -1
- package/dist/builtins/sys/textFilters.d.ts +0 -84
- package/dist/builtins/sys/textFilters.js +33 -110
- package/dist/builtins/sys/textFilters.js.map +1 -1
- package/dist/builtins/sys/timing.d.ts +0 -8
- package/dist/builtins/sys/timing.js +1 -12
- package/dist/builtins/sys/timing.js.map +1 -1
- package/dist/builtins/sys/variables.d.ts +0 -24
- package/dist/builtins/sys/variables.js +0 -29
- package/dist/builtins/sys/variables.js.map +1 -1
- package/dist/builtins/sys/version.d.ts +0 -12
- package/dist/builtins/sys/version.js +0 -15
- package/dist/builtins/sys/version.js.map +1 -1
- package/dist/builtins/sys/weather.js +46 -27
- package/dist/builtins/sys/weather.js.map +1 -1
- package/dist/builtins/sys/whoami.d.ts +0 -22
- package/dist/builtins/sys/whoami.js +16 -43
- package/dist/builtins/sys/whoami.js.map +1 -1
- package/dist/builtins/utils.d.ts +4 -39
- package/dist/builtins/utils.js +24 -55
- package/dist/builtins/utils.js.map +1 -1
- package/dist/chris/backend.js +7 -12
- package/dist/chris/backend.js.map +1 -1
- package/dist/chris/binDeclarations.d.ts +0 -44
- package/dist/chris/binDeclarations.js +111 -29
- package/dist/chris/binDeclarations.js.map +1 -1
- package/dist/chris/binExecutables.js +26 -18
- package/dist/chris/binExecutables.js.map +1 -1
- package/dist/chris/chiliDelegate.d.ts +104 -0
- package/dist/chris/chiliDelegate.js +240 -0
- package/dist/chris/chiliDelegate.js.map +1 -1
- package/dist/chris/commandFallback.d.ts +2 -2
- package/dist/chris/commandFallback.js +107 -50
- package/dist/chris/commandFallback.js.map +1 -1
- package/dist/chris/completion.d.ts +3 -1
- package/dist/chris/completion.js +5 -17
- package/dist/chris/completion.js.map +1 -1
- package/dist/chris/connect.d.ts +37 -0
- package/dist/chris/connect.js +46 -0
- package/dist/chris/connect.js.map +1 -1
- package/dist/chris/files.js +32 -2
- package/dist/chris/files.js.map +1 -1
- package/dist/chris/navigation.js +87 -53
- package/dist/chris/navigation.js.map +1 -1
- package/dist/chris/pacsResources.js +28 -11
- package/dist/chris/pacsResources.js.map +1 -1
- package/dist/chris/promptContext.js +68 -35
- package/dist/chris/promptContext.js.map +1 -1
- package/dist/chris/universeLayout.d.ts +8 -2
- package/dist/chris/universeLayout.js +40 -11
- package/dist/chris/universeLayout.js.map +1 -1
- package/dist/chris/warmup.d.ts +140 -0
- package/dist/chris/warmup.js +622 -0
- package/dist/chris/warmup.js.map +1 -0
- package/dist/core/argumentKinds.js +4 -4
- package/dist/core/argumentKinds.js.map +1 -1
- package/dist/core/assignment.js +8 -6
- package/dist/core/assignment.js.map +1 -1
- package/dist/core/backend.d.ts +44 -8
- package/dist/core/backend.js.map +1 -1
- package/dist/core/commandDeclaration.d.ts +8 -0
- package/dist/core/commandDeclaration.js.map +1 -1
- package/dist/core/commandParse.d.ts +34 -1
- package/dist/core/commandParse.js +156 -28
- package/dist/core/commandParse.js.map +1 -1
- package/dist/core/commandRegistry.d.ts +24 -5
- package/dist/core/commandRegistry.js +28 -5
- package/dist/core/commandRegistry.js.map +1 -1
- package/dist/core/dispatch.d.ts +1 -12
- package/dist/core/dispatch.js +12 -16
- package/dist/core/dispatch.js.map +1 -1
- package/dist/core/elevation.js +30 -5
- package/dist/core/elevation.js.map +1 -1
- package/dist/core/engine.d.ts +5 -11
- package/dist/core/engine.js +126 -50
- package/dist/core/engine.js.map +1 -1
- package/dist/core/expansion.d.ts +0 -6
- package/dist/core/expansion.js +0 -8
- package/dist/core/expansion.js.map +1 -1
- package/dist/core/filesystem.js +1 -1
- package/dist/core/filesystem.js.map +1 -1
- package/dist/core/handlerRun.d.ts +13 -0
- package/dist/core/handlerRun.js +21 -0
- package/dist/core/handlerRun.js.map +1 -1
- package/dist/core/holds.js +3 -3
- package/dist/core/holds.js.map +1 -1
- package/dist/core/hostGate.d.ts +62 -0
- package/dist/core/hostGate.js +72 -0
- package/dist/core/hostGate.js.map +1 -0
- package/dist/core/joblets.js +53 -27
- package/dist/core/joblets.js.map +1 -1
- package/dist/core/paths.d.ts +3 -5
- package/dist/core/paths.js +107 -36
- package/dist/core/paths.js.map +1 -1
- package/dist/core/preprocess.d.ts +12 -0
- package/dist/core/preprocess.js +42 -15
- package/dist/core/preprocess.js.map +1 -1
- package/dist/core/question.d.ts +27 -3
- package/dist/core/question.js +14 -6
- package/dist/core/question.js.map +1 -1
- package/dist/core/runner.d.ts +31 -7
- package/dist/core/runner.js +189 -37
- package/dist/core/runner.js.map +1 -1
- package/dist/core/sink.d.ts +7 -19
- package/dist/core/sink.js +56 -28
- package/dist/core/sink.js.map +1 -1
- package/dist/core/surface.js +1 -0
- package/dist/core/surface.js.map +1 -1
- package/dist/core/variables.js +37 -11
- package/dist/core/variables.js.map +1 -1
- package/dist/core/version.d.ts +0 -20
- package/dist/core/version.js +2 -26
- package/dist/core/version.js.map +1 -1
- package/dist/core/warmupFailures.d.ts +3 -6
- package/dist/core/warmupFailures.js.map +1 -1
- package/dist/core.d.ts +2 -0
- package/dist/core.js +2 -0
- package/dist/core.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/completer/cfsPaths.js +66 -26
- package/dist/lib/completer/cfsPaths.js.map +1 -1
- package/dist/lib/completer/declared.js +81 -20
- package/dist/lib/completer/declared.js.map +1 -1
- package/dist/lib/completer/index.d.ts +3 -0
- package/dist/lib/completer/index.js +44 -7
- package/dist/lib/completer/index.js.map +1 -1
- package/dist/lib/parser.d.ts +0 -16
- package/dist/lib/parser.js +223 -135
- package/dist/lib/parser.js.map +1 -1
- package/dist/lib/vfs/folderListing.d.ts +85 -0
- package/dist/lib/vfs/folderListing.js +86 -0
- package/dist/lib/vfs/folderListing.js.map +1 -0
- package/dist/lib/vfs/vfs.d.ts +37 -9
- package/dist/lib/vfs/vfs.js +195 -110
- package/dist/lib/vfs/vfs.js.map +1 -1
- package/dist/lib/wildcard.d.ts +7 -34
- package/dist/lib/wildcard.js +123 -95
- package/dist/lib/wildcard.js.map +1 -1
- package/dist/notes.json +1 -1
- package/dist/session/answerAdapters.js +249 -131
- package/dist/session/answerAdapters.js.map +1 -1
- package/package.json +12 -10
- package/dist/builtins/wildcard.d.ts +0 -8
- package/dist/builtins/wildcard.js +0 -9
- package/dist/builtins/wildcard.js.map +0 -1
- package/dist/lib/quoting.d.ts +0 -40
- package/dist/lib/quoting.js +0 -70
- package/dist/lib/quoting.js.map +0 -1
- package/dist/lib/semicolonParser.d.ts +0 -41
- package/dist/lib/semicolonParser.js +0 -93
- package/dist/lib/semicolonParser.js.map +0 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file A delivery a line asked for, and whether a delivery that arrives is it.
|
|
3
|
+
*
|
|
4
|
+
* Kept apart from the reader (`deliveryIntent.ts`), which needs the
|
|
5
|
+
* delivering commands' declarations: this half needs nothing, and a
|
|
6
|
+
* surface's own code and tests can hold it without the engine.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* One source a delivering line named, as far as the surface can bind a delivered file to it: the operand as typed,
|
|
12
|
+
* a pattern the engine expands, or none (a place only the session knows).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const named: SourceIntent = { operand: '/home/me/scans' };
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export type SourceIntent = OperandSource | PatternSource | UnresolvedSource;
|
|
20
|
+
/**
|
|
21
|
+
* A source named by its operand as typed, quoting removed.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const named: OperandSource = { operand: 'scans' };
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export interface OperandSource {
|
|
29
|
+
/** The operand. */
|
|
30
|
+
readonly operand: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A source the engine expands from a pattern: the operand's pattern as typed.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const matched: PatternSource = { pattern: '/home/me/*.dcm' };
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export interface PatternSource {
|
|
41
|
+
/** The pattern. */
|
|
42
|
+
readonly pattern: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A source whose place only the session knows (`.`, `~`, a path climbing with `..`): it binds nothing.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const unknown: UnresolvedSource = { unresolved: 'its source "." names a place only the session knows' };
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export interface UnresolvedSource {
|
|
53
|
+
/** Why. */
|
|
54
|
+
readonly unresolved: string;
|
|
55
|
+
}
|
|
56
|
+
/** One delivery a line asks for. */
|
|
57
|
+
export interface DeliveryIntent {
|
|
58
|
+
/** The command that asked. */
|
|
59
|
+
readonly verb: string;
|
|
60
|
+
/** The destination as the operator typed it, quoting removed; null when the command gave none or it cannot be bound. */
|
|
61
|
+
readonly destination: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Why this intent can authorise no delivery, when it cannot: the
|
|
64
|
+
* destination is written with a reference (`$OUT`), whose value only the
|
|
65
|
+
* engine knows. Such an intent matches nothing, whatever the engine sends.
|
|
66
|
+
*/
|
|
67
|
+
readonly unbound?: string;
|
|
68
|
+
/** The sources the line named, each as it binds a delivered file; absent when the line's command names none. */
|
|
69
|
+
readonly sources?: ReadonlyArray<SourceIntent>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A delivered file, as the engine names it: where it is in the store, the name it is to be written by, and the
|
|
73
|
+
* source it came from as the engine resolved it.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const file: DeliveredFile = { path: '/home/me/scans/a/1.dcm', filename: 'a/1.dcm', source: '/home/me/scans' };
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export interface DeliveredFile {
|
|
81
|
+
/** Its path in the store. */
|
|
82
|
+
readonly path: string;
|
|
83
|
+
/** The name to write it by under the destination: its base name, or its path inside a downloaded folder. */
|
|
84
|
+
readonly filename: string;
|
|
85
|
+
/** The source it came from, as the engine resolved it; absent from an engine that does not say. */
|
|
86
|
+
readonly source: string | undefined;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Whether a delivery's destination is one a line asked for.
|
|
90
|
+
*
|
|
91
|
+
* @param intents - What the delivery's own line asked for.
|
|
92
|
+
* @param destination - The destination a delivery names; undefined or empty when it names none.
|
|
93
|
+
* @returns True when some bound intent has exactly that destination, or none where the delivery has none.
|
|
94
|
+
*/
|
|
95
|
+
export declare function deliveryIntent_matches(intents: ReadonlyArray<DeliveryIntent>, destination: string | undefined): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* A store path in one spelling: no empty or `.` segments, no trailing slash, `/` for the root; relative stays
|
|
98
|
+
* relative.
|
|
99
|
+
*
|
|
100
|
+
* @param spelled - The path.
|
|
101
|
+
* @returns The same path, normalised.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* storePath_normalise('././a//b/'); // 'a/b'
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
export declare function storePath_normalise(spelled: string): string;
|
|
109
|
+
/**
|
|
110
|
+
* Settles a line's download sources against the session folder this chell was last shown, taken when the line is
|
|
111
|
+
* sent: a relative operand or pattern becomes absolute under it. Without a folder shown, an intent with a relative
|
|
112
|
+
* source binds nothing (a delivery for it is put to the person).
|
|
113
|
+
*
|
|
114
|
+
* @param intents - The line's intents.
|
|
115
|
+
* @param cwd - The session folder this chell showed, absolute; null when none was shown.
|
|
116
|
+
* @returns The intents with every source absolute, or unbound.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```ts
|
|
120
|
+
* sourceIntents_settle(intents, '/home/me'); // { operand: 'scans' } becomes { operand: '/home/me/scans' }
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
export declare function sourceIntents_settle(intents: ReadonlyArray<DeliveryIntent>, cwd: string | null): DeliveryIntent[];
|
|
124
|
+
/**
|
|
125
|
+
* Whether a delivered file is one a source the line named sends: the root the engine resolved is one the line's
|
|
126
|
+
* operand (or pattern) names, and the file is that root (written by its base name) or a file under it (written by
|
|
127
|
+
* its path inside). The written name is relative and never climbs. A file with no root named is no source's.
|
|
128
|
+
*
|
|
129
|
+
* @param sources - What the line named.
|
|
130
|
+
* @param file - The file the engine says it delivers.
|
|
131
|
+
* @returns True when some source sends it.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```ts
|
|
135
|
+
* deliverySource_matches([{ operand: 'scans' }], { path: '/home/me/scans/a/1.dcm', filename: 'a/1.dcm', source: '/home/me/scans' }); // true
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
export declare function deliverySource_matches(sources: ReadonlyArray<SourceIntent>, file: DeliveredFile): boolean;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file A delivery a line asked for, and whether a delivery that arrives is it.
|
|
3
|
+
*
|
|
4
|
+
* Kept apart from the reader (`deliveryIntent.ts`), which needs the
|
|
5
|
+
* delivering commands' declarations: this half needs nothing, and a
|
|
6
|
+
* surface's own code and tests can hold it without the engine.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { minimatch } from 'minimatch';
|
|
11
|
+
/**
|
|
12
|
+
* Whether a delivery's destination is one a line asked for.
|
|
13
|
+
*
|
|
14
|
+
* @param intents - What the delivery's own line asked for.
|
|
15
|
+
* @param destination - The destination a delivery names; undefined or empty when it names none.
|
|
16
|
+
* @returns True when some bound intent has exactly that destination, or none where the delivery has none.
|
|
17
|
+
*/
|
|
18
|
+
export function deliveryIntent_matches(intents, destination) {
|
|
19
|
+
const asked = destination === undefined || destination.length === 0 ? null : destination;
|
|
20
|
+
return intents.some((intent) => intent.unbound === undefined && intent.destination === asked);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A store path in one spelling: no empty or `.` segments, no trailing slash, `/` for the root; relative stays
|
|
24
|
+
* relative.
|
|
25
|
+
*
|
|
26
|
+
* @param spelled - The path.
|
|
27
|
+
* @returns The same path, normalised.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* storePath_normalise('././a//b/'); // 'a/b'
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export function storePath_normalise(spelled) {
|
|
35
|
+
const parts = spelled.split('/').filter((part) => part.length > 0 && part !== '.');
|
|
36
|
+
return spelled.startsWith('/') ? `/${parts.join('/')}` : parts.join('/');
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Settles a line's download sources against the session folder this chell was last shown, taken when the line is
|
|
40
|
+
* sent: a relative operand or pattern becomes absolute under it. Without a folder shown, an intent with a relative
|
|
41
|
+
* source binds nothing (a delivery for it is put to the person).
|
|
42
|
+
*
|
|
43
|
+
* @param intents - The line's intents.
|
|
44
|
+
* @param cwd - The session folder this chell showed, absolute; null when none was shown.
|
|
45
|
+
* @returns The intents with every source absolute, or unbound.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* sourceIntents_settle(intents, '/home/me'); // { operand: 'scans' } becomes { operand: '/home/me/scans' }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export function sourceIntents_settle(intents, cwd) {
|
|
53
|
+
return intents.map((intent) => {
|
|
54
|
+
if (intent.sources === undefined)
|
|
55
|
+
return intent;
|
|
56
|
+
const settled = [];
|
|
57
|
+
for (const source of intent.sources) {
|
|
58
|
+
if ('unresolved' in source)
|
|
59
|
+
return { verb: intent.verb, destination: null, unbound: source.unresolved };
|
|
60
|
+
const spelled = 'operand' in source ? source.operand : source.pattern;
|
|
61
|
+
if (!spelled.startsWith('/') && cwd === null) {
|
|
62
|
+
return { verb: intent.verb, destination: null, unbound: `its source ${JSON.stringify(spelled)} is relative, and no session folder has been shown here: type its full path` };
|
|
63
|
+
}
|
|
64
|
+
const absolute = storePath_normalise(spelled.startsWith('/') ? spelled : `${cwd ?? ''}/${spelled}`);
|
|
65
|
+
settled.push('operand' in source ? { operand: absolute } : { pattern: absolute });
|
|
66
|
+
}
|
|
67
|
+
return { ...intent, sources: settled };
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Whether an operand, settled absolute, names a resolved root: the same path, both normalised.
|
|
72
|
+
*
|
|
73
|
+
* @param operand - The operand, absolute.
|
|
74
|
+
* @param root - The root the engine resolved.
|
|
75
|
+
* @returns True when it names it.
|
|
76
|
+
*/
|
|
77
|
+
function operand_names(operand, root) {
|
|
78
|
+
return operand.startsWith('/') && storePath_normalise(operand) === storePath_normalise(root);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Whether a resolved root is one a pattern, settled absolute, names: its last segment matches the pattern's last
|
|
82
|
+
* segment and its folder is the pattern's folder.
|
|
83
|
+
*
|
|
84
|
+
* @param pattern - The pattern, absolute.
|
|
85
|
+
* @param root - The root the engine resolved.
|
|
86
|
+
* @returns True when it names it.
|
|
87
|
+
*/
|
|
88
|
+
function pattern_names(pattern, root) {
|
|
89
|
+
if (!pattern.startsWith('/'))
|
|
90
|
+
return false;
|
|
91
|
+
const wanted = storePath_normalise(pattern);
|
|
92
|
+
const resolved = storePath_normalise(root);
|
|
93
|
+
const cut = wanted.lastIndexOf('/');
|
|
94
|
+
const name = resolved.slice(resolved.lastIndexOf('/') + 1);
|
|
95
|
+
if (!minimatch(name, wanted.slice(cut + 1)))
|
|
96
|
+
return false;
|
|
97
|
+
const folder = wanted.slice(0, cut) || '/';
|
|
98
|
+
const parent = resolved.slice(0, resolved.lastIndexOf('/')) || '/';
|
|
99
|
+
return folder === parent;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Whether a delivered file is one a source the line named sends: the root the engine resolved is one the line's
|
|
103
|
+
* operand (or pattern) names, and the file is that root (written by its base name) or a file under it (written by
|
|
104
|
+
* its path inside). The written name is relative and never climbs. A file with no root named is no source's.
|
|
105
|
+
*
|
|
106
|
+
* @param sources - What the line named.
|
|
107
|
+
* @param file - The file the engine says it delivers.
|
|
108
|
+
* @returns True when some source sends it.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```ts
|
|
112
|
+
* deliverySource_matches([{ operand: 'scans' }], { path: '/home/me/scans/a/1.dcm', filename: 'a/1.dcm', source: '/home/me/scans' }); // true
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
export function deliverySource_matches(sources, file) {
|
|
116
|
+
const parts = file.filename.split('/');
|
|
117
|
+
if (file.filename.length === 0 || file.filename.startsWith('/') || parts.some((part) => part === '..' || part === '' || part === '.'))
|
|
118
|
+
return false;
|
|
119
|
+
if (file.source === undefined)
|
|
120
|
+
return false;
|
|
121
|
+
const root = storePath_normalise(file.source);
|
|
122
|
+
const base = root.slice(root.lastIndexOf('/') + 1);
|
|
123
|
+
const path = storePath_normalise(file.path);
|
|
124
|
+
const shaped = (path === root && file.filename === base) || path === `${root === '/' ? '' : root}/${file.filename}`;
|
|
125
|
+
if (!shaped)
|
|
126
|
+
return false;
|
|
127
|
+
return sources.some((source) => {
|
|
128
|
+
if ('operand' in source)
|
|
129
|
+
return operand_names(source.operand, root);
|
|
130
|
+
if ('pattern' in source)
|
|
131
|
+
return pattern_names(source.pattern, root);
|
|
132
|
+
return false;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=deliveryMatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliveryMatch.js","sourceRoot":"","sources":["../../../src/builtins/fs/deliveryMatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAsFtC;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,OAAsC,EAAE,WAA+B;IAC5G,MAAM,KAAK,GAAkB,WAAW,KAAK,SAAS,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC;IACxG,OA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AAI,KAAK,GAAG,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC7H,IAAI,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,MAAoB,EAAW,EAAE;QACpD,IAAI,SAAS,IAAI,MAAM;YAAE,OAAO,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACpE,IAAI,SAAS,IAAI,MAAM;YAAE,OAAO,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACpE,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file The destination a move or a copy was not given.
|
|
2
|
+
* @file The destination a move or a copy was not given, and one that must be a folder.
|
|
3
3
|
*
|
|
4
4
|
* A value-taking flag given no value asks for it (#442). A required
|
|
5
5
|
* OPERAND is the same sentence with the same answer: `mv foo` names what to
|
|
@@ -11,8 +11,25 @@
|
|
|
11
11
|
* from scratch: it opens where the source already lives, and offers the
|
|
12
12
|
* source's own name, so a rename is a rename rather than a transcription.
|
|
13
13
|
*
|
|
14
|
+
* Several sources, or a target directory, go into one folder: that folder
|
|
15
|
+
* is proved once, before anything is moved or copied, and anything else
|
|
16
|
+
* there refuses the whole command.
|
|
17
|
+
*
|
|
18
|
+
* Key components:
|
|
19
|
+
* - destination_ask, destination_missing, operands_fix: the destination asked for.
|
|
20
|
+
* - targetFolder_prove: the destination proved one folder, or why not.
|
|
21
|
+
*
|
|
22
|
+
* Typical usage:
|
|
23
|
+
* ```ts
|
|
24
|
+
* const refused: string | null = await targetFolder_prove(dispatcher, 'cp', '/home/ada/docs', '/home/ada/docs');
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* Dependencies: the session's filesystem (fond's dispatcher) and the
|
|
28
|
+
* question asked of the operator.
|
|
29
|
+
*
|
|
14
30
|
* @module
|
|
15
31
|
*/
|
|
32
|
+
import { type VFSDispatcher } from '@fnndsc/fond';
|
|
16
33
|
/** What a verb needs said about the destination it is asking for. */
|
|
17
34
|
export interface DestinationAsk {
|
|
18
35
|
/** The verb asking, for the message and for its refusal. */
|
|
@@ -64,3 +81,22 @@ export declare function destination_missing(verb: string): string;
|
|
|
64
81
|
* @returns The operands, absolute where they resolve.
|
|
65
82
|
*/
|
|
66
83
|
export declare function operands_fix(operands: string[]): Promise<string[]>;
|
|
84
|
+
/**
|
|
85
|
+
* Proves the folder several sources, or a target directory, go into: one
|
|
86
|
+
* folder (or a mount point), on the proof of the mount that owns it. A
|
|
87
|
+
* mount that does not take entries into a folder (`intoFolder_offered`), or
|
|
88
|
+
* offers no proof, refuses the command as a whole, as does anything else
|
|
89
|
+
* there: nothing, a file or a link, several holders, or a proof that failed.
|
|
90
|
+
*
|
|
91
|
+
* @param dispatcher - The session's filesystem.
|
|
92
|
+
* @param verb - `cp` or `mv`, for the words.
|
|
93
|
+
* @param destStore - The destination where the store keeps it.
|
|
94
|
+
* @param destPath - The destination as the session names it, for the words.
|
|
95
|
+
* @returns Null when it is one folder; else the refusal, naming it and why.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const refused: string | null = await targetFolder_prove(dispatcher, 'mv', '/home/ada/c', '/home/ada/c');
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export declare function targetFolder_prove(dispatcher: VFSDispatcher, verb: 'cp' | 'mv', destStore: string, destPath: string): Promise<string | null>;
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The destination a move or a copy was not given, and one that must be a folder.
|
|
3
|
+
*
|
|
4
|
+
* A value-taking flag given no value asks for it (#442). A required
|
|
5
|
+
* OPERAND is the same sentence with the same answer: `mv foo` names what to
|
|
6
|
+
* move and not where to put it, and erroring with a usage line — what it
|
|
7
|
+
* did before — tells an operator something they already know instead of
|
|
8
|
+
* asking them the one thing they have not said.
|
|
9
|
+
*
|
|
10
|
+
* What the ask carries is what makes it answerable without typing a path
|
|
11
|
+
* from scratch: it opens where the source already lives, and offers the
|
|
12
|
+
* source's own name, so a rename is a rename rather than a transcription.
|
|
13
|
+
*
|
|
14
|
+
* Several sources, or a target directory, go into one folder: that folder
|
|
15
|
+
* is proved once, before anything is moved or copied, and anything else
|
|
16
|
+
* there refuses the whole command.
|
|
17
|
+
*
|
|
18
|
+
* Key components:
|
|
19
|
+
* - destination_ask, destination_missing, operands_fix: the destination asked for.
|
|
20
|
+
* - targetFolder_prove: the destination proved one folder, or why not.
|
|
21
|
+
*
|
|
22
|
+
* Typical usage:
|
|
23
|
+
* ```ts
|
|
24
|
+
* const refused: string | null = await targetFolder_prove(dispatcher, 'cp', '/home/ada/docs', '/home/ada/docs');
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* Dependencies: the session's filesystem (fond's dispatcher) and the
|
|
28
|
+
* question asked of the operator.
|
|
29
|
+
*
|
|
30
|
+
* @module
|
|
31
|
+
*/
|
|
32
|
+
import { errno_words, vfs_fail } from '@fnndsc/fond';
|
|
33
|
+
import { holderKind_isFolder, holders_say } from './entries.js';
|
|
1
34
|
/**
|
|
2
35
|
* Asks where the sources should go.
|
|
3
36
|
*
|
|
@@ -82,4 +115,51 @@ export async function operands_fix(operands) {
|
|
|
82
115
|
}
|
|
83
116
|
return fixed;
|
|
84
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* The proof of what holds a target, a proof that threw taken as one that
|
|
120
|
+
* failed (`EIO`, with its words): a target never proved is never a folder.
|
|
121
|
+
*
|
|
122
|
+
* @param dispatcher - The session's filesystem.
|
|
123
|
+
* @param destStore - The target where the store keeps it.
|
|
124
|
+
* @returns The proof, or why none was made.
|
|
125
|
+
*/
|
|
126
|
+
async function targetProof_take(dispatcher, destStore) {
|
|
127
|
+
try {
|
|
128
|
+
return await dispatcher.holder_prove(destStore);
|
|
129
|
+
}
|
|
130
|
+
catch (error) {
|
|
131
|
+
return vfs_fail('EIO', `could not be proved a folder (${error instanceof Error ? error.message : String(error)})`);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Proves the folder several sources, or a target directory, go into: one
|
|
136
|
+
* folder (or a mount point), on the proof of the mount that owns it. A
|
|
137
|
+
* mount that does not take entries into a folder (`intoFolder_offered`), or
|
|
138
|
+
* offers no proof, refuses the command as a whole, as does anything else
|
|
139
|
+
* there: nothing, a file or a link, several holders, or a proof that failed.
|
|
140
|
+
*
|
|
141
|
+
* @param dispatcher - The session's filesystem.
|
|
142
|
+
* @param verb - `cp` or `mv`, for the words.
|
|
143
|
+
* @param destStore - The destination where the store keeps it.
|
|
144
|
+
* @param destPath - The destination as the session names it, for the words.
|
|
145
|
+
* @returns Null when it is one folder; else the refusal, naming it and why.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```ts
|
|
149
|
+
* const refused: string | null = await targetFolder_prove(dispatcher, 'mv', '/home/ada/c', '/home/ada/c');
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
export async function targetFolder_prove(dispatcher, verb, destStore, destPath) {
|
|
153
|
+
const nothing = `nothing was ${verb === 'cp' ? 'copied' : 'moved'}`;
|
|
154
|
+
if (!dispatcher.intoFolder_offered(destStore) || !dispatcher.holderProof_offered(destStore)) {
|
|
155
|
+
return `${verb}: target '${destPath}': its mount does not take entries into a folder; ${nothing}`;
|
|
156
|
+
}
|
|
157
|
+
const proof = await targetProof_take(dispatcher, destStore);
|
|
158
|
+
if (proof.ok && proof.value.kind === 'held' && holderKind_isFolder(proof.value.holder))
|
|
159
|
+
return null;
|
|
160
|
+
const why = !proof.ok ? proof.reason ?? errno_words(proof.errno)
|
|
161
|
+
: proof.value.kind === 'absent' ? errno_words('ENOENT')
|
|
162
|
+
: proof.value.kind === 'ambiguous' ? `${holders_say(proof.value.holders)} share it` : errno_words('ENOTDIR');
|
|
163
|
+
return `${verb}: target '${destPath}': ${why}; ${nothing}`;
|
|
164
|
+
}
|
|
85
165
|
//# sourceMappingURL=destination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destination.js","sourceRoot":"","sources":["../../../src/builtins/fs/destination.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"destination.js","sourceRoot":"","sources":["../../../src/builtins/fs/destination.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAyD,MAAM,cAAc,CAAC;AAE5G,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAkBhE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAmB;IACvD,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;IACrD,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;IACrE,MAAM,KAAK,GAAW,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAW,MAAM,YAAY,CAAC,KAAK,CAAC,CAAC;IACnD,2EAA2E;IAC3E,MAAM,IAAI,GAAW,MAAM,YAAY,CAAC,GAAG,CAAC,CAAC;IAC7C,MAAM,GAAG,GAAW,QAAQ,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAW,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAC/D,MAAM,IAAI,GAAW,QAAQ,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,C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M,KAAK,GAA4B,MAAM,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IACrF,IAAI,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;QAAE,OAAO,IAAI,CAAC;IACpG,MAAM,GAAG,GAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC;QACtE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC;YACrD,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IACjH,OAAO,GAAG,IAAI,aAAa,QAAQ,MAAM,GAAG,KAAK,OAAO,EAAE,CAAC;AAC7D,CAAC"}
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @file `download`: ChRIS files and folders to the local filesystem, with
|
|
3
|
+
* progress; under a daemon, handed to the surface instead.
|
|
4
|
+
*
|
|
5
|
+
* Declared in one record (`downloadCommand`): a CFS path operand that globs
|
|
6
|
+
* and a host path operand on one line, never globbed.
|
|
7
|
+
*
|
|
8
|
+
* Key components:
|
|
9
|
+
* - downloadCommand: the declaration.
|
|
10
|
+
*
|
|
11
|
+
* Typical usage:
|
|
12
|
+
* ```ts
|
|
13
|
+
* await declaredCommand_run(downloadCommand, ['/home/chris/uploads/a.nii', './data/']);
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* Dependencies: chili's transfer, salsa's file listing, the session's surface.
|
|
17
|
+
*
|
|
18
|
+
* @module
|
|
19
|
+
*/
|
|
2
20
|
/**
|
|
3
21
|
* `download [-f] [-j N] <source…> <destination>`: the declaration.
|
|
4
22
|
*
|
|
@@ -38,10 +56,3 @@ export declare const downloadCommand: import("../../core/commandDeclaration.js")
|
|
|
38
56
|
};
|
|
39
57
|
};
|
|
40
58
|
}>;
|
|
41
|
-
/**
|
|
42
|
-
* `download` over words already split: the declaration's parse and handler.
|
|
43
|
-
*
|
|
44
|
-
* @param args - The words after `download`.
|
|
45
|
-
* @returns The download summary, or the refusal of a bad line.
|
|
46
|
-
*/
|
|
47
|
-
export declare function builtin_download(args: string[]): Promise<CommandEnvelope>;
|