@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
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Builtin url: a web address that opens ARGUS at a path.
|
|
3
|
+
*
|
|
4
|
+
* A colleague handed a node used to paste a long `pwd` into chat, and the
|
|
5
|
+
* one receiving it walked down to it by hand. `url <path>` prints the
|
|
6
|
+
* door's address with the path as its fragment; ARGUS reads the fragment
|
|
7
|
+
* when it opens and lands there: a feed or a node in RUNS, anything else
|
|
8
|
+
* in FILES. The path is the session's resolved absolute path, so the link
|
|
9
|
+
* names the same place for anyone the feed is shared with.
|
|
10
|
+
*
|
|
11
|
+
* Declared in one record (`urlCommand`).
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
1
15
|
import { CommandEnvelope } from '@fnndsc/menu';
|
|
2
16
|
import { type CommandDeclaration } from '../../core/commandDeclaration.js';
|
|
3
|
-
/** The environment variable naming the door (porter) a link opens through. */
|
|
4
|
-
export declare const URL_DOOR_ENV: string;
|
|
5
17
|
/**
|
|
6
18
|
* The address a link opens: the door with the path as its fragment.
|
|
7
19
|
*
|
package/dist/builtins/fs/url.js
CHANGED
|
@@ -12,14 +12,12 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module
|
|
14
14
|
*/
|
|
15
|
+
import { DOOR_HOST_ENV, envelope_ok } from '@fnndsc/menu';
|
|
15
16
|
import chalk from 'chalk';
|
|
16
|
-
import { envelope_ok } from '@fnndsc/menu';
|
|
17
|
-
import { session } from '../../session/index.js';
|
|
18
|
-
import { path_resolve } from '../utils.js';
|
|
19
17
|
import { command_declare } from '../../core/commandDeclaration.js';
|
|
20
18
|
import { declaredCommand_run } from '../../core/commandParse.js';
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
import { session } from '../../session/index.js';
|
|
20
|
+
import { path_resolve } from '../utils.js';
|
|
23
21
|
/**
|
|
24
22
|
* The address a link opens: the door with the path as its fragment.
|
|
25
23
|
*
|
|
@@ -46,10 +44,10 @@ const URL_GRAMMAR = {
|
|
|
46
44
|
*/
|
|
47
45
|
async function url_answer(path, env) {
|
|
48
46
|
const absolute = path === undefined ? await session.getCWD() : await path_resolve(path);
|
|
49
|
-
const door = (env[
|
|
47
|
+
const door = (env[DOOR_HOST_ENV] ?? '').trim();
|
|
50
48
|
const link = url_compose(door, absolute);
|
|
51
49
|
const rendered = door === ''
|
|
52
|
-
? `${link}\n${chalk.dim(`No door is known to this session (${
|
|
50
|
+
? `${link}\n${chalk.dim(`No door is known to this session (${DOOR_HOST_ENV} is unset): put the door's address in front, e.g. https://titan.tch.harvard.edu/${link}`)}\n`
|
|
53
51
|
: `${link}\n`;
|
|
54
52
|
return envelope_ok(rendered, { kind: 'fs.url', data: { path: absolute, url: link } });
|
|
55
53
|
}
|
|
@@ -65,7 +63,7 @@ function urlCommand_make(env) {
|
|
|
65
63
|
grammar: URL_GRAMMAR,
|
|
66
64
|
help: {
|
|
67
65
|
summary: 'Print a link (a web address) that opens ARGUS at a path, to send to a colleague',
|
|
68
|
-
description: `Print a web address that opens ARGUS at a path: a feed or a node lands in RUNS, anything else in FILES. The path is the session's resolved absolute path, so the link names the same place for anyone the feed is shared with. The door comes from ${
|
|
66
|
+
description: `Print a web address that opens ARGUS at a path: a feed or a node lands in RUNS, anything else in FILES. The path is the session's resolved absolute path, so the link names the same place for anyone the feed is shared with. The door comes from ${DOOR_HOST_ENV}; without it the fragment alone is printed, with a word on what to put in front.`,
|
|
69
67
|
category: 'Sharing',
|
|
70
68
|
examples: [
|
|
71
69
|
'url # Where you stand',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../src/builtins/fs/url.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../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
|
|
2
|
+
* What a write left on the error stack.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* const report: WriteReport = { reason: 'Could not write /a: …', warnings: ['The new content was left at /a/.x.mise-new-1'] };
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
9
|
+
export interface WriteReport {
|
|
10
|
+
/** Why it failed: the newest error it left; absent when it left none. */
|
|
11
|
+
readonly reason?: string;
|
|
12
|
+
/** Every warning it left, oldest first. */
|
|
13
|
+
readonly warnings: readonly string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Takes what a write left on the error stack since a mark: off the stack,
|
|
17
|
+
* the newest error as the reason, and every warning.
|
|
18
|
+
*
|
|
19
|
+
* @param mark - The stack's mark from before the write.
|
|
20
|
+
* @returns The report.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const report: WriteReport = writeReport_take(mark);
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function writeReport_take(mark: number): WriteReport;
|
|
28
|
+
/**
|
|
29
|
+
* A write's warnings as lines for the operator, each under the command's name.
|
|
30
|
+
*
|
|
31
|
+
* @param command - The command, for the lines (`edit`, `config write`).
|
|
32
|
+
* @param warnings - The warnings.
|
|
33
|
+
* @returns One line each, ending in a newline; empty when there are none.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* writeWarnings_render('edit', ['The old content was left at /a/.x.mise-old-1']);
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare function writeWarnings_render(command: string, warnings: readonly string[]): string;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file What a proved write left on the error stack: why it failed, and what it left behind.
|
|
3
|
+
*
|
|
4
|
+
* salsa's `file_write` leaves its reason as an error, and then may leave
|
|
5
|
+
* warnings after it: a staged or set-aside copy (`.name.mise-old-…`) it
|
|
6
|
+
* could not remove. The newest message is then a warning, and taking it for
|
|
7
|
+
* the reason hides the reason. Here the two are told apart: the reason is
|
|
8
|
+
* the newest error, and every warning is said beside it, on success too, so
|
|
9
|
+
* a hidden copy left behind is named.
|
|
10
|
+
*
|
|
11
|
+
* Key components:
|
|
12
|
+
* - WriteReport: the reason and the warnings.
|
|
13
|
+
* - writeReport_take: drain what a write left since a mark.
|
|
14
|
+
* - writeWarnings_render: the warnings as lines for the operator.
|
|
15
|
+
*
|
|
16
|
+
* Typical usage:
|
|
17
|
+
* ```ts
|
|
18
|
+
* const mark: number = errorStack.checkpoint_mark();
|
|
19
|
+
* const written: boolean = await file_write(target, blob);
|
|
20
|
+
* const report: WriteReport = writeReport_take(mark);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Dependencies: fond's error stack.
|
|
24
|
+
*
|
|
25
|
+
* @module
|
|
26
|
+
*/
|
|
27
|
+
import { errorStack } from '@fnndsc/fond';
|
|
28
|
+
import chalk from 'chalk';
|
|
29
|
+
/**
|
|
30
|
+
* A stacked message's words, without the stack's own prefix.
|
|
31
|
+
*
|
|
32
|
+
* @param message - The message.
|
|
33
|
+
* @returns Its words.
|
|
34
|
+
*/
|
|
35
|
+
function message_words(message) {
|
|
36
|
+
return message.message.replace(/^\[[^\]]*\]\s*\|\s*/, '');
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Takes what a write left on the error stack since a mark: off the stack,
|
|
40
|
+
* the newest error as the reason, and every warning.
|
|
41
|
+
*
|
|
42
|
+
* @param mark - The stack's mark from before the write.
|
|
43
|
+
* @returns The report.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const report: WriteReport = writeReport_take(mark);
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export function writeReport_take(mark) {
|
|
51
|
+
const left = errorStack.checkpoint_drain(mark);
|
|
52
|
+
const reason = left.filter((message) => message.type === 'error').at(-1);
|
|
53
|
+
const warnings = left.filter((message) => message.type === 'warning').map(message_words);
|
|
54
|
+
return reason === undefined ? { warnings } : { reason: message_words(reason), warnings };
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A write's warnings as lines for the operator, each under the command's name.
|
|
58
|
+
*
|
|
59
|
+
* @param command - The command, for the lines (`edit`, `config write`).
|
|
60
|
+
* @param warnings - The warnings.
|
|
61
|
+
* @returns One line each, ending in a newline; empty when there are none.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* writeWarnings_render('edit', ['The old content was left at /a/.x.mise-old-1']);
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export function writeWarnings_render(command, warnings) {
|
|
69
|
+
return warnings.map((warning) => `${chalk.yellow(`${command}: warning: ${warning}`)}\n`).join('');
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=writeReport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeReport.js","sourceRoot":"","sources":["../../../src/builtins/fs/writeReport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAqB,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B;;;;;GAKG;AACH,SAAS,aAAa,CAAC,OAAqB;IAC1C,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;AAC5D,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,MAAM,IAAI,GAAmB,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC/D,MAAM,MAAM,GAA6B,IAAI,CAAC,MAAM,CAAC,CAAC,OAAqB,EAAW,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1H,MAAM,QAAQ,GAAa,IAAI,CAAC,MAAM,CAAC,CAAC,OAAqB,EAAW,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC1H,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC;AAC3F,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe,EAAE,QAA2B;IAC/E,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAe,EAAU,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,OAAO,cAAc,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpH,CAAC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
/** The one attribute a feed carries. */
|
|
2
|
-
export declare const XATTR_TAG: string;
|
|
3
|
-
/** The names that attribute answers to: `tag`, and `user.tag` as Linux namespaces it. */
|
|
4
|
-
export declare const XATTR_NAMES: readonly ['tag', 'user.tag'];
|
|
5
1
|
/**
|
|
6
|
-
* The
|
|
7
|
-
*
|
|
2
|
+
* @file The words of a feed's tags: the one attribute and `getfattr`'s
|
|
3
|
+
* dump. The targets a feed is named by are menu's `feedRef_parse`,
|
|
4
|
+
* the same for `setfacl` and `setfattr`.
|
|
8
5
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* A feed's tags are, in POSIX terms, an extended attribute: `setfattr -n
|
|
7
|
+
* tag -v urgent feed_12` hangs one, `getfattr feed_12` reads them. One
|
|
8
|
+
* attribute exists, `tag` (also spelled `user.tag`), and it holds many
|
|
9
|
+
* values — CUBE's tags on the feed.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
11
|
+
* The line itself is parsed against each command's declaration
|
|
12
|
+
* (`xattr.ts`). Dependency-free, as `acl.args.ts` is, so these are tested
|
|
13
|
+
* without the engine.
|
|
14
|
+
*
|
|
15
|
+
* @module
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
/** The one attribute a feed carries. */
|
|
18
|
+
export declare const XATTR_TAG: string;
|
|
18
19
|
/**
|
|
19
20
|
* Renders a feed's tags the way `getfattr` dumps attributes: a `# file:`
|
|
20
21
|
* line, then one `tag="…"` line per value; nothing under it when bare.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @file The words of a feed's tags: the one attribute
|
|
3
|
-
* is named by
|
|
2
|
+
* @file The words of a feed's tags: the one attribute and `getfattr`'s
|
|
3
|
+
* dump. The targets a feed is named by are menu's `feedRef_parse`,
|
|
4
|
+
* the same for `setfacl` and `setfattr`.
|
|
4
5
|
*
|
|
5
6
|
* A feed's tags are, in POSIX terms, an extended attribute: `setfattr -n
|
|
6
7
|
* tag -v urgent feed_12` hangs one, `getfattr feed_12` reads them. One
|
|
@@ -13,30 +14,8 @@
|
|
|
13
14
|
*
|
|
14
15
|
* @module
|
|
15
16
|
*/
|
|
16
|
-
import { aclTarget_resolve } from './acl.args.js';
|
|
17
17
|
/** The one attribute a feed carries. */
|
|
18
18
|
export const XATTR_TAG = 'tag';
|
|
19
|
-
/** The names that attribute answers to: `tag`, and `user.tag` as Linux namespaces it. */
|
|
20
|
-
export const XATTR_NAMES = ['tag', 'user.tag'];
|
|
21
|
-
/**
|
|
22
|
-
* The feed a path names: an id, a `feed_N`, a path through `/feeds/` as
|
|
23
|
-
* setfacl reads it, or the projection `/proc/jobs/feed_N`.
|
|
24
|
-
*
|
|
25
|
-
* @param target - The path as typed.
|
|
26
|
-
* @returns The feed id, or null.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* xattrTarget_resolve('/proc/jobs/feed_12'); // 12
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export function xattrTarget_resolve(target) {
|
|
34
|
-
const held = aclTarget_resolve(target);
|
|
35
|
-
if (held !== null)
|
|
36
|
-
return held;
|
|
37
|
-
const projected = target.match(/\/jobs\/feed_(\d+)(?:\/|$)/);
|
|
38
|
-
return projected !== null ? Number(projected[1]) : null;
|
|
39
|
-
}
|
|
40
19
|
/**
|
|
41
20
|
* Renders a feed's tags the way `getfattr` dumps attributes: a `# file:`
|
|
42
21
|
* line, then one `tag="…"` line per value; nothing under it when bare.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xattr.args.js","sourceRoot":"","sources":["../../../src/builtins/fs/xattr.args.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"xattr.args.js","sourceRoot":"","sources":["../../../src/builtins/fs/xattr.args.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,wCAAwC;AACxC,MAAM,CAAC,MAAM,SAAS,GAAW,KAAK,CAAC;AAEvC;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,IAA2B;IACpE,OAAO,CAAC,WAAW,IAAI,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5H,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CommandEnvelope } from '@fnndsc/menu';
|
|
2
1
|
/**
|
|
3
2
|
* `getfattr [-d] [-n tag] <path>…`: the declaration.
|
|
4
3
|
*
|
|
@@ -33,18 +32,6 @@ export declare const getfattrCommand: import("../../core/commandDeclaration.js")
|
|
|
33
32
|
};
|
|
34
33
|
};
|
|
35
34
|
}>;
|
|
36
|
-
/**
|
|
37
|
-
* `getfattr` over words already split: the declaration's parse and handler.
|
|
38
|
-
*
|
|
39
|
-
* @param args - The words after `getfattr`.
|
|
40
|
-
* @returns The tags, or the refusal of a bad line.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* await builtin_getfattr(['feed_12']);
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare function builtin_getfattr(args: string[]): Promise<CommandEnvelope>;
|
|
48
35
|
/**
|
|
49
36
|
* `setfattr -n tag -v <value> <path>… | -x tag [-v <value>] <path>…`: the declaration.
|
|
50
37
|
*
|
|
@@ -93,15 +80,3 @@ export declare const setfattrCommand: import("../../core/commandDeclaration.js")
|
|
|
93
80
|
};
|
|
94
81
|
};
|
|
95
82
|
}>;
|
|
96
|
-
/**
|
|
97
|
-
* `setfattr` over words already split: the declaration's parse and handler.
|
|
98
|
-
*
|
|
99
|
-
* @param args - The words after `setfattr`.
|
|
100
|
-
* @returns An envelope, empty on success, or the refusal of a bad line.
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* ```ts
|
|
104
|
-
* await builtin_setfattr(['-x', 'tag', 'feed_12']);
|
|
105
|
-
* ```
|
|
106
|
-
*/
|
|
107
|
-
export declare function builtin_setfattr(args: string[]): Promise<CommandEnvelope>;
|
|
@@ -9,25 +9,23 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Key components:
|
|
11
11
|
* - setfattrCommand, getfattrCommand: the declarations.
|
|
12
|
-
* - builtin_setfattr, builtin_getfattr: each declaration run over words already split.
|
|
13
12
|
*
|
|
14
13
|
* Typical usage:
|
|
15
14
|
* ```ts
|
|
16
|
-
* await
|
|
15
|
+
* await declaredCommand_run(setfattrCommand, ['-n', 'tag', '-v', 'urgent', 'feed_12']);
|
|
17
16
|
* ```
|
|
18
17
|
*
|
|
19
18
|
* Dependencies: cumin's tag calls; the target and dump words (`xattr.args.ts`).
|
|
20
19
|
*
|
|
21
20
|
* @module
|
|
22
21
|
*/
|
|
23
|
-
import chalk from 'chalk';
|
|
24
22
|
import { feedTags_list, feedTag_add, feedTag_remove } from '@fnndsc/cumin';
|
|
25
|
-
import { xattrTarget_resolve, xattr_render } from './xattr.args.js';
|
|
26
|
-
import { error_stripDebugPrefix } from '../utils.js';
|
|
27
23
|
import { errorStack } from '@fnndsc/fond';
|
|
28
|
-
import { envelope_ok, envelope_error } from '@fnndsc/menu';
|
|
24
|
+
import { envelope_ok, envelope_error, feedRef_parse } from '@fnndsc/menu';
|
|
25
|
+
import chalk from 'chalk';
|
|
26
|
+
import { error_stripDebugPrefix } from '../utils.js';
|
|
27
|
+
import { xattr_render } from './xattr.args.js';
|
|
29
28
|
import { command_declare } from '../../core/commandDeclaration.js';
|
|
30
|
-
import { declaredCommand_run } from '../../core/commandParse.js';
|
|
31
29
|
import { commandUsage_render } from '../../core/commandUsage.js';
|
|
32
30
|
import { exitCode_set } from '../../core/handlerRun.js';
|
|
33
31
|
/** The feeds a line names, as both commands take them. */
|
|
@@ -75,7 +73,7 @@ async function getfattr_run(args) {
|
|
|
75
73
|
const blocks = [];
|
|
76
74
|
const model = [];
|
|
77
75
|
for (const path of args.operands.path) {
|
|
78
|
-
const feedId =
|
|
76
|
+
const feedId = feedRef_parse(path);
|
|
79
77
|
if (feedId === null)
|
|
80
78
|
return refusal(`getfattr: '${path}' does not name a feed`);
|
|
81
79
|
const held = await feedTags_list(feedId);
|
|
@@ -112,20 +110,6 @@ export const getfattrCommand = command_declare({
|
|
|
112
110
|
holds: [],
|
|
113
111
|
handler: getfattr_run,
|
|
114
112
|
});
|
|
115
|
-
/**
|
|
116
|
-
* `getfattr` over words already split: the declaration's parse and handler.
|
|
117
|
-
*
|
|
118
|
-
* @param args - The words after `getfattr`.
|
|
119
|
-
* @returns The tags, or the refusal of a bad line.
|
|
120
|
-
*
|
|
121
|
-
* @example
|
|
122
|
-
* ```ts
|
|
123
|
-
* await builtin_getfattr(['feed_12']);
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
export async function builtin_getfattr(args) {
|
|
127
|
-
return declaredCommand_run(getfattrCommand, args);
|
|
128
|
-
}
|
|
129
113
|
/** What a `setfattr` line may hold. */
|
|
130
114
|
const SETFATTR_GRAMMAR = {
|
|
131
115
|
operands: [FEEDS_OPERAND],
|
|
@@ -146,6 +130,67 @@ function setfattrLine_refuse(reason) {
|
|
|
146
130
|
exitCode_set(1);
|
|
147
131
|
return envelope_error('', undefined, `${chalk.red(`setfattr: ${reason}; usage: ${commandUsage_render(setfattrCommand)}`)}\n`);
|
|
148
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Validates `setfattr` options and resolves the operation mode and tag value.
|
|
135
|
+
*
|
|
136
|
+
* @param options - The parsed `setfattr` options.
|
|
137
|
+
* @returns The mode and trimmed value, or a refusal envelope.
|
|
138
|
+
*/
|
|
139
|
+
function setfattrOptions_check(options) {
|
|
140
|
+
const { name, remove } = options;
|
|
141
|
+
if (name !== undefined && remove !== undefined)
|
|
142
|
+
return { refusal: setfattrLine_refuse('-n sets and -x removes; give one') };
|
|
143
|
+
if (name === undefined && remove === undefined)
|
|
144
|
+
return { refusal: setfattrLine_refuse('-n tag or -x tag is needed') };
|
|
145
|
+
const mode = name !== undefined ? 'set' : 'remove';
|
|
146
|
+
const value = options.value === undefined ? null : options.value.trim();
|
|
147
|
+
if (mode === 'set' && (value === null || value === ''))
|
|
148
|
+
return { refusal: setfattrLine_refuse(`-n ${name ?? 'tag'} needs -v <value>`) };
|
|
149
|
+
return { mode, value };
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Dispatches one tag addition or removal on a feed.
|
|
153
|
+
*
|
|
154
|
+
* @param mode - Whether adding (`set`) or removing (`remove`) the tag.
|
|
155
|
+
* @param feedId - Target feed ID.
|
|
156
|
+
* @param tagName - Tag name.
|
|
157
|
+
* @returns The kernel result promise.
|
|
158
|
+
*/
|
|
159
|
+
function feedTag_change(mode, feedId, tagName) {
|
|
160
|
+
return mode === 'set' ? feedTag_add(feedId, tagName) : feedTag_remove(feedId, tagName);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Checks whether a single tag mutation failed or missed an explicit value removal.
|
|
164
|
+
*
|
|
165
|
+
* @param done - The mutation result from CUBE.
|
|
166
|
+
* @param mode - Whether adding (`set`) or removing (`remove`) the tag.
|
|
167
|
+
* @param value - The explicit tag value from `-v`, or null when removing all tags.
|
|
168
|
+
* @param path - The feed path as typed.
|
|
169
|
+
* @param tagName - The tag name attempted.
|
|
170
|
+
* @returns Whether the tag changed on success, or a refusal envelope on failure.
|
|
171
|
+
*/
|
|
172
|
+
function tagChange_verify(done, mode, value, path, tagName) {
|
|
173
|
+
if (!done.ok) {
|
|
174
|
+
const said = error_stripDebugPrefix(error_said(`could not ${mode === 'set' ? 'add' : 'remove'} tag ${tagName}`));
|
|
175
|
+
return refusal(`setfattr: ${path}: ${said}`);
|
|
176
|
+
}
|
|
177
|
+
if (mode === 'remove' && value !== null && !done.value) {
|
|
178
|
+
return refusal(`setfattr: ${path}: tag="${tagName}": No such attribute value`);
|
|
179
|
+
}
|
|
180
|
+
return done.value;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Extracts the tag names from a feed's tag listing result, or returns a refusal envelope.
|
|
184
|
+
*
|
|
185
|
+
* @param held - The feed tag listing result.
|
|
186
|
+
* @param feedId - The feed ID.
|
|
187
|
+
* @returns The list of tag names, or a refusal envelope.
|
|
188
|
+
*/
|
|
189
|
+
function heldTagNames_extract(held, feedId) {
|
|
190
|
+
if (!held.ok)
|
|
191
|
+
return refusal(error_said(`setfattr: could not read the tags of feed ${String(feedId)}`));
|
|
192
|
+
return held.value.map((tag) => tag.name);
|
|
193
|
+
}
|
|
149
194
|
/**
|
|
150
195
|
* Hangs a tag on feeds (`-n tag -v <value>`), or takes one off (`-x tag -v
|
|
151
196
|
* <value>`), or takes every tag off (`-x tag`, as setfattr removes the
|
|
@@ -155,40 +200,26 @@ function setfattrLine_refuse(reason) {
|
|
|
155
200
|
* @returns An envelope, empty on success.
|
|
156
201
|
*/
|
|
157
202
|
async function setfattr_run(args) {
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
160
|
-
return
|
|
161
|
-
|
|
162
|
-
return setfattrLine_refuse('-n tag or -x tag is needed');
|
|
163
|
-
const mode = name !== undefined ? 'set' : 'remove';
|
|
164
|
-
const value = args.options.value === undefined ? null : args.options.value.trim();
|
|
165
|
-
if (mode === 'set' && (value === null || value === ''))
|
|
166
|
-
return setfattrLine_refuse(`-n ${name ?? 'tag'} needs -v <value>`);
|
|
203
|
+
const checked = setfattrOptions_check(args.options);
|
|
204
|
+
if ('refusal' in checked)
|
|
205
|
+
return checked.refusal;
|
|
206
|
+
const { mode, value } = checked;
|
|
167
207
|
const changed = [];
|
|
168
208
|
for (const path of args.operands.path) {
|
|
169
|
-
const feedId =
|
|
209
|
+
const feedId = feedRef_parse(path);
|
|
170
210
|
if (feedId === null)
|
|
171
211
|
return refusal(`setfattr: '${path}' does not name a feed`);
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
names = held.value.map((tag) => tag.name);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
names = [value ?? ''];
|
|
181
|
-
}
|
|
212
|
+
const names = mode === 'remove' && value === null
|
|
213
|
+
? heldTagNames_extract(await feedTags_list(feedId), feedId)
|
|
214
|
+
: [value ?? ''];
|
|
215
|
+
if (!Array.isArray(names))
|
|
216
|
+
return names;
|
|
182
217
|
for (const tagName of names) {
|
|
183
|
-
const done =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
return
|
|
187
|
-
}
|
|
188
|
-
if (mode === 'remove' && value !== null && !done.value) {
|
|
189
|
-
return refusal(`setfattr: ${path}: tag="${tagName}": No such attribute value`);
|
|
190
|
-
}
|
|
191
|
-
changed.push({ feedId, tag: tagName, done: done.value });
|
|
218
|
+
const done = await feedTag_change(mode, feedId, tagName);
|
|
219
|
+
const verified = tagChange_verify(done, mode, value, path, tagName);
|
|
220
|
+
if (typeof verified !== 'boolean')
|
|
221
|
+
return verified;
|
|
222
|
+
changed.push({ feedId, tag: tagName, done: verified });
|
|
192
223
|
}
|
|
193
224
|
}
|
|
194
225
|
return envelope_ok('', { kind: 'fs.xattr.changed', data: { mode, changed } });
|
|
@@ -222,18 +253,4 @@ export const setfattrCommand = command_declare({
|
|
|
222
253
|
},
|
|
223
254
|
handler: setfattr_run,
|
|
224
255
|
});
|
|
225
|
-
/**
|
|
226
|
-
* `setfattr` over words already split: the declaration's parse and handler.
|
|
227
|
-
*
|
|
228
|
-
* @param args - The words after `setfattr`.
|
|
229
|
-
* @returns An envelope, empty on success, or the refusal of a bad line.
|
|
230
|
-
*
|
|
231
|
-
* @example
|
|
232
|
-
* ```ts
|
|
233
|
-
* await builtin_setfattr(['-x', 'tag', 'feed_12']);
|
|
234
|
-
* ```
|
|
235
|
-
*/
|
|
236
|
-
export async function builtin_setfattr(args) {
|
|
237
|
-
return declaredCommand_run(setfattrCommand, args);
|
|
238
|
-
}
|
|
239
256
|
//# sourceMappingURL=xattr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xattr.js","sourceRoot":"","sources":["../../../src/builtins/fs/xattr.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"xattr.js","sourceRoot":"","sources":["../../../src/builtins/fs/xattr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAgB,MAAM,eAAe,CAAC;AACzF,OAAO,EAAE,UAAU,EAAkC,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAmB,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,sB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
|
|
|
26
26
|
readonly summary: "The ChRIS files to name; a wildcard matches paths";
|
|
27
27
|
}];
|
|
28
28
|
}>;
|
|
29
|
-
/**
|
|
30
|
-
* `file` over words already split: the declaration's parse and handler.
|
|
31
|
-
*
|
|
32
|
-
* @param args - The words after `file`.
|
|
33
|
-
* @returns What each file is, or the refusal of a bad line.
|
|
34
|
-
*/
|
|
35
|
-
export declare function builtin_file(args: string[]): Promise<CommandEnvelope>;
|
|
36
29
|
/**
|
|
37
30
|
* `xxd [-s OFFSET] [-l LENGTH] <path>`: the declaration.
|
|
38
31
|
*
|
|
@@ -69,18 +62,6 @@ export declare const xxdCommand: import("../../core/commandDeclaration.js").Comm
|
|
|
69
62
|
};
|
|
70
63
|
};
|
|
71
64
|
}>;
|
|
72
|
-
/**
|
|
73
|
-
* `xxd` over words already split: the declaration's parse and handler.
|
|
74
|
-
*
|
|
75
|
-
* @param args - The words after `xxd`.
|
|
76
|
-
* @returns The dump, or the refusal of a bad line.
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```ts
|
|
80
|
-
* await builtin_xxd(['-l', '16', 'a.txt']);
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
export declare function builtin_xxd(args: string[]): Promise<CommandEnvelope>;
|
|
84
65
|
/**
|
|
85
66
|
* Dumps a file's bytes in hex.
|
|
86
67
|
*
|
|
@@ -131,18 +112,6 @@ export declare const stringsCommand: import("../../core/commandDeclaration.js").
|
|
|
131
112
|
};
|
|
132
113
|
};
|
|
133
114
|
}>;
|
|
134
|
-
/**
|
|
135
|
-
* `strings` over words already split: the declaration's parse and handler.
|
|
136
|
-
*
|
|
137
|
-
* @param args - The words after `strings`.
|
|
138
|
-
* @returns The runs, or the refusal of a bad line.
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* ```ts
|
|
142
|
-
* await builtin_strings(['-n', '8', 'a.bin']);
|
|
143
|
-
* ```
|
|
144
|
-
*/
|
|
145
|
-
export declare function builtin_strings(args: string[]): Promise<CommandEnvelope>;
|
|
146
115
|
/**
|
|
147
116
|
* Lists the printable runs in a file.
|
|
148
117
|
*
|
|
@@ -191,27 +160,3 @@ export declare const md5sumCommand: import("../../core/commandDeclaration.js").C
|
|
|
191
160
|
readonly summary: "The files";
|
|
192
161
|
}];
|
|
193
162
|
}>;
|
|
194
|
-
/**
|
|
195
|
-
* `sha256sum` over words already split: the declaration's parse and handler.
|
|
196
|
-
*
|
|
197
|
-
* @param args - The words after `sha256sum`.
|
|
198
|
-
* @returns The digests, or the refusal of a bad line.
|
|
199
|
-
*
|
|
200
|
-
* @example
|
|
201
|
-
* ```ts
|
|
202
|
-
* await builtin_sha256sum(['a.txt']);
|
|
203
|
-
* ```
|
|
204
|
-
*/
|
|
205
|
-
export declare function builtin_sha256sum(args: string[]): Promise<CommandEnvelope>;
|
|
206
|
-
/**
|
|
207
|
-
* `md5sum` over words already split: the declaration's parse and handler.
|
|
208
|
-
*
|
|
209
|
-
* @param args - The words after `md5sum`.
|
|
210
|
-
* @returns The digests, or the refusal of a bad line.
|
|
211
|
-
*
|
|
212
|
-
* @example
|
|
213
|
-
* ```ts
|
|
214
|
-
* await builtin_md5sum(['a.txt']);
|
|
215
|
-
* ```
|
|
216
|
-
*/
|
|
217
|
-
export declare function builtin_md5sum(args: string[]): Promise<CommandEnvelope>;
|