@fnndsc/brasa 0.57.3 → 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 +25 -9
- 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
package/dist/builtins/fs/edit.js
CHANGED
|
@@ -20,26 +20,33 @@
|
|
|
20
20
|
* await builtin_edit(['~/uploads/config.yaml']);
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
|
-
* Dependencies: chili's read and
|
|
24
|
-
*
|
|
23
|
+
* Dependencies: chili's read and salsa's proved write (`file_write`, bound
|
|
24
|
+
* to the client of the read by `fileWrite_bind`) for a store file; salsa's
|
|
25
|
+
* dispatcher for a projected one, the write handed the same binding as its
|
|
26
|
+
* identity (a projection that writes to CUBE saves on it, or refuses); the
|
|
27
|
+
* session's surface for the editor.
|
|
25
28
|
*
|
|
26
29
|
* @module
|
|
27
30
|
*/
|
|
28
|
-
import {
|
|
29
|
-
import { writeFileSync, unlinkSync, existsSync } from 'fs';
|
|
30
|
-
import { tmpdir } from 'os';
|
|
31
|
-
import { join, extname, posix } from 'path';
|
|
32
|
-
import chalk from 'chalk';
|
|
33
|
-
import { path_resolve, storePath_resolve, error_stripDebugPrefix } from '../utils.js';
|
|
34
|
-
import { surface_get, capability_require, CapabilityError } from '../../core/surface.js';
|
|
35
|
-
import { command_declare } from '../../core/commandDeclaration.js';
|
|
36
|
-
import { declaredCommand_run } from '../../core/commandParse.js';
|
|
31
|
+
import { extname, posix } from 'path';
|
|
37
32
|
import { files_cat } from '@fnndsc/chili/commands/fs/cat.js';
|
|
38
|
-
import { file_replaceContent } from '@fnndsc/chili/commands/fs/edit.js';
|
|
39
33
|
import { listCache_get } from '@fnndsc/cumin';
|
|
34
|
+
import { privateTemp_write, suffix_safe, vfsOutcome_convertToResult, errorStack } from '@fnndsc/fond';
|
|
40
35
|
import { path_isEditable, envelope_ok, envelope_error } from '@fnndsc/menu';
|
|
41
|
-
import {
|
|
36
|
+
import { file_write, fileWrite_bind } from '@fnndsc/salsa';
|
|
37
|
+
import chalk from 'chalk';
|
|
38
|
+
import { command_declare } from '../../core/commandDeclaration.js';
|
|
39
|
+
import { declaredCommand_run } from '../../core/commandParse.js';
|
|
42
40
|
import { exitCode_set } from '../../core/handlerRun.js';
|
|
41
|
+
import { surface_get, capability_require, CapabilityError } from '../../core/surface.js';
|
|
42
|
+
import { path_resolve, storePath_resolve, error_stripDebugPrefix } from '../utils.js';
|
|
43
|
+
import { writeReport_take, writeWarnings_render } from './writeReport.js';
|
|
44
|
+
/**
|
|
45
|
+
* The identity a projected save is handed when no binding could be made at
|
|
46
|
+
* the read: a projection that writes to CUBE refuses it; one that keeps its
|
|
47
|
+
* files itself does not ask.
|
|
48
|
+
*/
|
|
49
|
+
const READ_UNBOUND = { current_is: () => Promise.resolve(false) };
|
|
43
50
|
/** What `edit` says when the surface opened an editor that stays open. */
|
|
44
51
|
export const EDIT_OPENED_LINE = '(opened in the editor)';
|
|
45
52
|
/** What an `edit` line may hold: one ChRIS file (a wildcard may name it, when it matches one). */
|
|
@@ -81,24 +88,41 @@ export async function builtin_edit(args) {
|
|
|
81
88
|
return declaredCommand_run(editCommand, args);
|
|
82
89
|
}
|
|
83
90
|
/**
|
|
84
|
-
*
|
|
85
|
-
* original via delete + re-upload. No-ops if content is unchanged.
|
|
91
|
+
* Verifies that the active surface supports opening a local editor.
|
|
86
92
|
*
|
|
87
|
-
* @
|
|
88
|
-
* @returns An envelope carrying the edit outcome.
|
|
93
|
+
* @returns An error envelope when the capability is absent, or null when supported.
|
|
89
94
|
*/
|
|
90
|
-
|
|
91
|
-
// Editing needs a surface that can open a local editor. A surface without
|
|
92
|
-
// the capability (a headless or browser host) fails here with a clear
|
|
93
|
-
// message instead of assuming a terminal exists.
|
|
95
|
+
function localEditCapability_check() {
|
|
94
96
|
try {
|
|
95
97
|
capability_require('localEdit', 'edit: this surface cannot open a local editor.');
|
|
98
|
+
return null;
|
|
96
99
|
}
|
|
97
100
|
catch (err) {
|
|
98
101
|
const message = err instanceof CapabilityError ? err.message : String(err);
|
|
99
102
|
exitCode_set(1);
|
|
100
103
|
return envelope_error('', undefined, `${chalk.red(message)}\n`);
|
|
101
104
|
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Opens a ChRIS file in the surface's local editor. On save, replaces the
|
|
108
|
+
* original by salsa's proved write (the original is kept until the new
|
|
109
|
+
* content is at its name). No-ops if content is unchanged.
|
|
110
|
+
*
|
|
111
|
+
* @param named - The file as the operator typed it.
|
|
112
|
+
* @returns An envelope carrying the edit outcome.
|
|
113
|
+
*/
|
|
114
|
+
async function edit_run(named) {
|
|
115
|
+
// Editing needs a surface that can open a local editor. A surface without
|
|
116
|
+
// the capability (a headless or browser host) fails here with a clear
|
|
117
|
+
// message instead of assuming a terminal exists.
|
|
118
|
+
const uncapable = localEditCapability_check();
|
|
119
|
+
if (uncapable !== null)
|
|
120
|
+
return uncapable;
|
|
121
|
+
// The client the save goes to is bound before the file is found and read:
|
|
122
|
+
// a connection that changes while the editor is open refuses the save,
|
|
123
|
+
// which keeps the edit, rather than writing it through another client.
|
|
124
|
+
// A bind that failed (null) refuses the save too: it is never bound later.
|
|
125
|
+
const bound = await fileWrite_bind();
|
|
102
126
|
// Read and written where the store keeps it: a path through a link (a
|
|
103
127
|
// run's output under /proc/jobs, a `.chrislink`) edits what it points at.
|
|
104
128
|
const target = await storePath_resolve(named);
|
|
@@ -113,7 +137,7 @@ async function edit_run(named) {
|
|
|
113
137
|
if (vfsDispatcher.path_isVirtual(target)) {
|
|
114
138
|
return projectedFile_edit(named, target, ext, {
|
|
115
139
|
read: async (at) => vfsOutcome_convertToResult(await vfsDispatcher.read(at), 'read', at),
|
|
116
|
-
write: async (at, content) => vfsOutcome_convertToResult(await vfsDispatcher.write(at, content), 'write', at).ok,
|
|
140
|
+
write: async (at, content) => vfsOutcome_convertToResult(await vfsDispatcher.write(at, content, { identity: bound ?? READ_UNBOUND }), 'write', at).ok,
|
|
117
141
|
});
|
|
118
142
|
}
|
|
119
143
|
const catResult = await files_cat(target);
|
|
@@ -125,7 +149,7 @@ async function edit_run(named) {
|
|
|
125
149
|
// Hand the content to the surface's editor.
|
|
126
150
|
let edit;
|
|
127
151
|
try {
|
|
128
|
-
edit = await surface_get().localEdit({ content: catResult.value, extension: ext || '.txt', path: target });
|
|
152
|
+
edit = await surface_get().localEdit({ content: catResult.value, extension: ext || '.txt', path: target, named });
|
|
129
153
|
}
|
|
130
154
|
catch (err) {
|
|
131
155
|
exitCode_set(1);
|
|
@@ -139,38 +163,81 @@ async function edit_run(named) {
|
|
|
139
163
|
if (!edit.changed) {
|
|
140
164
|
return envelope_ok(`${chalk.gray('(no changes)')}\n`);
|
|
141
165
|
}
|
|
142
|
-
//
|
|
143
|
-
//
|
|
144
|
-
|
|
145
|
-
|
|
166
|
+
// Save the edited content, keeping a private copy of it until the save is
|
|
167
|
+
// confirmed, and preserving that copy (reporting its path) if it fails.
|
|
168
|
+
// In a folder of its own only this account can open (0700), created anew and 0600: nothing at a predictable
|
|
169
|
+
// name is followed, and nobody else reads the edit.
|
|
170
|
+
const temp = privateTemp_write('chell-edit-', `edit${suffix_safe(ext, '.txt')}`, edit.content);
|
|
171
|
+
const tmpPath = temp.path;
|
|
172
|
+
// The copy is kept until the save is confirmed: a rejected save, or one that throws, says where it is.
|
|
173
|
+
let result;
|
|
174
|
+
try {
|
|
175
|
+
result = await content_save(target, edit.content, bound);
|
|
176
|
+
}
|
|
177
|
+
catch (error) {
|
|
178
|
+
result = { success: false, error: error instanceof Error ? error.message : String(error), warnings: [] };
|
|
179
|
+
}
|
|
180
|
+
// A replacement was attempted (it stages, sets aside and moves files in the folder), so the folder's listing is stale by
|
|
181
|
+
// both its names, saved or not: where the store keeps it, and the path the file was reached by. A listing that
|
|
182
|
+
// cannot be refreshed never hides where a failed save's edit is kept.
|
|
183
|
+
await listings_invalidate(target, named);
|
|
184
|
+
const warned = writeWarnings_render('edit', result.warnings);
|
|
185
|
+
if (!result.success)
|
|
186
|
+
return editSave_fail(result.error, tmpPath, warned);
|
|
187
|
+
temp.folder_remove();
|
|
188
|
+
return envelope_ok(`${chalk.green(`Saved: ${named}`)}\n${warned}`);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Puts content at a store path by salsa's proved write: created when
|
|
192
|
+
* nothing holds it, replaced (the original kept until the new content is at
|
|
193
|
+
* its name) when a file does, and refused otherwise.
|
|
194
|
+
*
|
|
195
|
+
* @param target - The store's path.
|
|
196
|
+
* @param content - The new content.
|
|
197
|
+
* @param bound - The client bound when the file was read (null when that bind failed); the save goes to it, or nowhere.
|
|
198
|
+
* @returns Success, or failure with the write's own reason (its newest
|
|
199
|
+
* error, never a warning after it); and, either way, the warnings it left.
|
|
200
|
+
*/
|
|
201
|
+
async function content_save(target, content, bound) {
|
|
202
|
+
const mark = errorStack.checkpoint_mark();
|
|
203
|
+
const written = await file_write(target, new Blob([content]), bound);
|
|
204
|
+
const report = writeReport_take(mark);
|
|
205
|
+
if (written)
|
|
206
|
+
return { success: true, warnings: report.warnings };
|
|
207
|
+
return { success: false, error: report.reason ?? `Could not write ${target}`, warnings: report.warnings };
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Drops the cached listings of a file's folder, by the store's path and by the path it was reached by.
|
|
211
|
+
*
|
|
212
|
+
* @param target - The store's path.
|
|
213
|
+
* @param named - The path as typed.
|
|
214
|
+
*/
|
|
215
|
+
async function listings_invalidate(target, named) {
|
|
146
216
|
try {
|
|
147
|
-
writeFileSync(tmpPath, edit.content, 'utf8');
|
|
148
|
-
const result = await file_replaceContent(target, tmpPath);
|
|
149
|
-
// The folder's listing is stale by both its names: where the store
|
|
150
|
-
// keeps it, and the path the file was reached by.
|
|
151
217
|
listCache_get().cache_invalidate(posix.dirname(target));
|
|
152
218
|
listCache_get().cache_invalidate(posix.dirname(await path_resolve(named)));
|
|
153
|
-
if (result.success) {
|
|
154
|
-
return envelope_ok(`${chalk.green(`Saved: ${named}`)}\n`);
|
|
155
|
-
}
|
|
156
|
-
const apiErr = errorStack.stack_pop();
|
|
157
|
-
let renderedErr = `${chalk.red(`edit: Save failed — ${result.error}`)}\n`;
|
|
158
|
-
if (apiErr)
|
|
159
|
-
renderedErr += `${chalk.red(` API error: ${error_stripDebugPrefix(apiErr.message)}`)}\n`;
|
|
160
|
-
renderedErr += `${chalk.yellow(`Your edits are preserved at: ${tmpPath}`)}\n`;
|
|
161
|
-
keepTmp = true;
|
|
162
|
-
exitCode_set(1);
|
|
163
|
-
return envelope_error('', undefined, renderedErr);
|
|
164
219
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
try {
|
|
168
|
-
unlinkSync(tmpPath);
|
|
169
|
-
}
|
|
170
|
-
catch { /* ignore */ }
|
|
171
|
-
}
|
|
220
|
+
catch {
|
|
221
|
+
// A stale listing is read again on its own time; the edit's outcome is what is said.
|
|
172
222
|
}
|
|
173
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Says a save that did not go through, and where the edit is kept.
|
|
226
|
+
*
|
|
227
|
+
* @param reason - Why the save failed.
|
|
228
|
+
* @param kept - The private copy that holds the edit.
|
|
229
|
+
* @param warned - The save's warnings, as lines.
|
|
230
|
+
* @returns The failure.
|
|
231
|
+
*/
|
|
232
|
+
function editSave_fail(reason, kept, warned = '') {
|
|
233
|
+
const apiErr = errorStack.stack_pop();
|
|
234
|
+
let renderedErr = `${chalk.red(`edit: Save failed — ${String(reason)}`)}\n${warned}`;
|
|
235
|
+
if (apiErr)
|
|
236
|
+
renderedErr += `${chalk.red(` API error: ${error_stripDebugPrefix(apiErr.message)}`)}\n`;
|
|
237
|
+
renderedErr += `${chalk.yellow(`Your edits are preserved at: ${kept}`)}\n`;
|
|
238
|
+
exitCode_set(1);
|
|
239
|
+
return envelope_error('', undefined, renderedErr);
|
|
240
|
+
}
|
|
174
241
|
/**
|
|
175
242
|
* Edits a file a projection holds (a feed's note at
|
|
176
243
|
* /proc/jobs/feed_N/note): read through the projection, handed to the
|
|
@@ -192,7 +259,7 @@ async function projectedFile_edit(named, target, ext, dispatcher) {
|
|
|
192
259
|
}
|
|
193
260
|
let edit;
|
|
194
261
|
try {
|
|
195
|
-
edit = await surface_get().localEdit({ content: read.value, extension: ext || '.txt', path: target });
|
|
262
|
+
edit = await surface_get().localEdit({ content: read.value, extension: ext || '.txt', path: target, named });
|
|
196
263
|
}
|
|
197
264
|
catch (err) {
|
|
198
265
|
exitCode_set(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.js","sourceRoot":"","sources":["../../../src/builtins/fs/edit.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"edit.js","sourceRoot":"","sources":["../../../src/builtins/fs/edit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAqB,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,0BAA0B,EAAwC,UAAU,EAAwB,MAAM,cAAc,CAAC;AAClK,OAAO,EAAE,eAAe,EAAwB,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAA8C,MAAM,kCAAkC,CAAC;AAC/G,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAAwB,MAAM,uBAAuB,CAAC;AAC/G,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACt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AAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/G,CAAC;IAAC,OAAO,GAAY,EAAE,CAAC;QACtB,YAAY,CAAC,CAAC,CAAC,CAAC;QAChB,OAAO,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;IACtH,CAAC;IACD,IAAI,IAAI,CAAC,MAAM;QAAE,OAAO,WAAW,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACzE,IAAI,CAAC,IAAI,CAAC,OAAO;QAAE,OAAO,WAAW,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACzE,IAAI,MAAM,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,WAAW,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC;IAC5G,MAAM,GAAG,GAA6B,UAAU,CAAC,SAAS,EAAE,CAAC;IAC7D,YAAY,CAAC,CAAC,CAAC,CAAC;IAChB,OAAO,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,kBAAkB,EAAE,CAAC,IAAI,CAAC,CAAC;AAC5I,CAAC"}
|
|
@@ -21,6 +21,44 @@ export declare function pathEntry_find(dispatcher: VFSDispatcher, targetPath: st
|
|
|
21
21
|
* @returns True for a folder.
|
|
22
22
|
*/
|
|
23
23
|
export declare function entry_isFolder(entry: VFSItem | null): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether a proved holder's kind is a folder: a store's folder or a mount point.
|
|
26
|
+
*
|
|
27
|
+
* @param kind - The kind a holder proof named.
|
|
28
|
+
* @returns True for a folder.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* holderKind_isFolder('dir'); // true
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function holderKind_isFolder(kind: string): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The things more than one of which hold a path, in an operator's words.
|
|
38
|
+
*
|
|
39
|
+
* @param kinds - Their kinds, as a holder proof named them.
|
|
40
|
+
* @returns `a folder and a file`, and the like.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* holders_say(['dir', 'file']); // 'a folder and a file'
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare function holders_say(kinds: readonly string[]): string;
|
|
48
|
+
/**
|
|
49
|
+
* The refusal of an operand whose last part is `.` or `..`, as written: it
|
|
50
|
+
* names a folder by way of its own entries, and normalising it away would
|
|
51
|
+
* act on whatever the path before it names (`link/.` is not `link`).
|
|
52
|
+
*
|
|
53
|
+
* @param operand - The operand as typed.
|
|
54
|
+
* @returns `EINVAL` with why, or null for any other operand.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* dotOperand_refuse('scratch/..'); // EINVAL
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function dotOperand_refuse(operand: string): VfsOutcome<never> | null;
|
|
24
62
|
/**
|
|
25
63
|
* Makes a folder and its missing parents (`mkdir -p`): in one step where the
|
|
26
64
|
* mount offers it (CUBE makes parents with the folder), else each missing
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { vfs_ok, vfs_failFromStack, errorStack } from '@fnndsc/fond';
|
|
7
|
+
import { vfs_ok, vfs_fail, vfs_failFromStack, errorStack } from '@fnndsc/fond';
|
|
8
8
|
/**
|
|
9
9
|
* What holds a path, as its parent lists it.
|
|
10
10
|
*
|
|
@@ -33,6 +33,53 @@ export async function pathEntry_find(dispatcher, targetPath) {
|
|
|
33
33
|
export function entry_isFolder(entry) {
|
|
34
34
|
return entry !== null && (entry.type === 'dir' || entry.type === 'vfs');
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Whether a proved holder's kind is a folder: a store's folder or a mount point.
|
|
38
|
+
*
|
|
39
|
+
* @param kind - The kind a holder proof named.
|
|
40
|
+
* @returns True for a folder.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* holderKind_isFolder('dir'); // true
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export function holderKind_isFolder(kind) {
|
|
48
|
+
return kind === 'dir' || kind === 'vfs';
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The things more than one of which hold a path, in an operator's words.
|
|
52
|
+
*
|
|
53
|
+
* @param kinds - Their kinds, as a holder proof named them.
|
|
54
|
+
* @returns `a folder and a file`, and the like.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* holders_say(['dir', 'file']); // 'a folder and a file'
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export function holders_say(kinds) {
|
|
62
|
+
return kinds.map((kind) => `a ${kind === 'dir' ? 'folder' : kind}`).join(' and ');
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The refusal of an operand whose last part is `.` or `..`, as written: it
|
|
66
|
+
* names a folder by way of its own entries, and normalising it away would
|
|
67
|
+
* act on whatever the path before it names (`link/.` is not `link`).
|
|
68
|
+
*
|
|
69
|
+
* @param operand - The operand as typed.
|
|
70
|
+
* @returns `EINVAL` with why, or null for any other operand.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* dotOperand_refuse('scratch/..'); // EINVAL
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export function dotOperand_refuse(operand) {
|
|
78
|
+
const last = operand.split('/').filter((part) => part !== '').pop();
|
|
79
|
+
if (last !== '.' && last !== '..')
|
|
80
|
+
return null;
|
|
81
|
+
return vfs_fail('EINVAL', `its last part '${last}' names no entry of its own, and is refused`);
|
|
82
|
+
}
|
|
36
83
|
/**
|
|
37
84
|
* Makes a folder and its missing parents (`mkdir -p`): in one step where the
|
|
38
85
|
* mount offers it (CUBE makes parents with the folder), else each missing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entries.js","sourceRoot":"","sources":["../../../src/builtins/fs/entries.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAkE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"entries.js","sourceRoot":"","sources":["../../../src/builtins/fs/entries.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU,EAAkE,MAAM,cAAc,CAAC;AAE/I;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,UAAyB,EAAE,UAAkB;IAChF,MAAM,KAAK,GAAW,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAC/G,MAAM,KAAK,GAAW,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC7C,MAAM,IAAI,GAAW,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAC5C,MAAM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ChF,MAAM,IAAI,GAAsB,MAAM,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAClE,IAAI,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC9C,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QAC9B,MAAM,KAAK,GAAW,UAAU,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QAC1F,MAAM,OAAO,GAAe,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,iBAAiB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAC3H,IAAI,CAAC,OAAO,CAAC,EAAE;YAAE,OAAO,OAAO,CAAC;IAClC,CAAC;IACD,OAAO,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExpressionDeclaration } from '../../core/commandDeclaration.js';
|
|
2
1
|
import { type CommandEnvelope } from '@fnndsc/menu';
|
|
2
|
+
import type { ExpressionDeclaration } from '../../core/commandDeclaration.js';
|
|
3
3
|
/** One entry the walk visits. */
|
|
4
4
|
export interface FindNode {
|
|
5
5
|
/** The path as printed (relative to how its starting point was typed). */
|