@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
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file The ChRIS session's startup warm-up: the caches a session restores
|
|
3
|
+
* and fills before and behind its prompt.
|
|
4
|
+
*
|
|
5
|
+
* Restores the identity's checkpoints (folder listings, the PACS query
|
|
6
|
+
* index, /proc), prefetches `/bin`, indexes /proc/jobs and starts the steps
|
|
7
|
+
* that warm behind the prompt (groups, feeds, `/PUBLIC`, `/SHARED`, prior
|
|
8
|
+
* PACS queries), then the job topology. A host (chell, interactive or
|
|
9
|
+
* daemon) chooses the caches, reports each row through a small reporter
|
|
10
|
+
* and decides what an exhausted step means; it never reaches the caches
|
|
11
|
+
* itself.
|
|
12
|
+
*
|
|
13
|
+
* Key components:
|
|
14
|
+
* - startupWarmup_run: the warm-up, its counts, failures and the steps still warming.
|
|
15
|
+
* - queryCheckpoint_prime, queryCheckpoint_flush: the PACS replay index for a run with no warm-up.
|
|
16
|
+
*
|
|
17
|
+
* Typical usage:
|
|
18
|
+
* ```ts
|
|
19
|
+
* const cache: StartupWarmupCache = await startupWarmup_run(flags, user, true, bootLogger, true, 9);
|
|
20
|
+
* if (cache.failures.length > 0) { ... }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Dependencies: cumin's caches and checkpoints, salsa's /proc roster and
|
|
24
|
+
* topology, the session's filesystem and backend identity.
|
|
25
|
+
*
|
|
26
|
+
* @module
|
|
27
|
+
*/
|
|
28
|
+
import { errorStack, listCache_get, listCheckpoint_restore, listCheckpoint_watch, procCache_get, procCheckpoint_restore, procCheckpoint_watch, queryIndex_sweep, queryIndexCheckpoint_finish, queryIndexCheckpoint_hold, queryIndexCheckpoint_restore, queryIndexCheckpoint_save, queryIndexCheckpoint_watch } from '@fnndsc/cumin';
|
|
29
|
+
import { identityName_spell, identityScope_run } from '@fnndsc/cumin/identity-epoch';
|
|
30
|
+
import { pipelinePackages_restore, pipelinePackages_sweep, procCache_refresh, procDataFacts_start, procRoster_bootSync, procRoster_sync, procTopology_status, procTopology_warmup, vfsDispatcher } from '@fnndsc/salsa';
|
|
31
|
+
import { universeLayouts_warm } from './universeLayout.js';
|
|
32
|
+
import { procUniverseModel_build } from '../builtins/proc.js';
|
|
33
|
+
import { backend_get } from '../core/backend.js';
|
|
34
|
+
import { error_stripDebugPrefix } from '../core/errorText.js';
|
|
35
|
+
import { warmupFailure_clear, warmupFailure_note, warmupPending_clear, warmupPending_note } from '../core/warmupFailures.js';
|
|
36
|
+
import { count_noun } from '../lib/count.js';
|
|
37
|
+
import { prefetch_path, prefetchWithSpinner_run } from '../lib/prefetch.js';
|
|
38
|
+
import { vfs } from '../lib/vfs/vfs.js';
|
|
39
|
+
import { session } from '../session/index.js';
|
|
40
|
+
/** Number of attempts for a blocking startup cache operation. */
|
|
41
|
+
const STARTUP_WARMUP_ATTEMPTS = 3;
|
|
42
|
+
/** Brief backoff before the second and third startup attempts. */
|
|
43
|
+
const STARTUP_WARMUP_RETRY_DELAYS_MS = [250, 500];
|
|
44
|
+
/**
|
|
45
|
+
* Waits briefly between transient startup attempts without retaining a timer.
|
|
46
|
+
*
|
|
47
|
+
* @param attempt - One-based attempt that just failed.
|
|
48
|
+
* @returns Nothing after the corresponding retry delay.
|
|
49
|
+
*/
|
|
50
|
+
async function startupRetry_wait(attempt) {
|
|
51
|
+
const delay = STARTUP_WARMUP_RETRY_DELAYS_MS[attempt - 1] ?? 0;
|
|
52
|
+
if (delay === 0)
|
|
53
|
+
return;
|
|
54
|
+
await new Promise((resolve) => { setTimeout(resolve, delay); });
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Runs one blocking warm-up action with a bounded retry policy.
|
|
58
|
+
*
|
|
59
|
+
* @param label - Stable boot-step label.
|
|
60
|
+
* @param message - Description shown while the action is running.
|
|
61
|
+
* @param draw - How the step draws while it runs.
|
|
62
|
+
* @param reporter - Optional boot-status reporter.
|
|
63
|
+
* @param action - One attempt at the cache operation.
|
|
64
|
+
* @returns The first successful result, or the last failed result.
|
|
65
|
+
*/
|
|
66
|
+
async function startupPrefetch_retry(label, message, draw, reporter, action) {
|
|
67
|
+
return startupAttempts_run(label, reporter, () => prefetchWithSpinner_run(label, message, draw.interactive, action, draw.statusWidth));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Runs one warm-up attempt at a time under the bounded retry policy.
|
|
71
|
+
*
|
|
72
|
+
* Draws nothing itself: a blocking step wraps each attempt in the spinner
|
|
73
|
+
* (or its plain-log stand-in), and a deferred step has already printed its
|
|
74
|
+
* pending row and must not print another.
|
|
75
|
+
*
|
|
76
|
+
* @param label - Stable boot-step label.
|
|
77
|
+
* @param reporter - Where retry rows go, or null to retry silently.
|
|
78
|
+
* @param attempt - One attempt at the cache operation.
|
|
79
|
+
* @returns The first successful result, or the last failed result.
|
|
80
|
+
*/
|
|
81
|
+
async function startupAttempts_run(label, reporter, attempt) {
|
|
82
|
+
let last = { ok: false, message: 'Warm-up did not run.' };
|
|
83
|
+
for (let turn = 1; turn <= STARTUP_WARMUP_ATTEMPTS; turn++) {
|
|
84
|
+
last = await attempt();
|
|
85
|
+
if (last.ok || turn === STARTUP_WARMUP_ATTEMPTS)
|
|
86
|
+
return last;
|
|
87
|
+
reporter?.row_log('retry', label, `Attempt ${String(turn)}/${String(STARTUP_WARMUP_ATTEMPTS)} failed: ${last.message ?? 'unknown error'}; retrying.`);
|
|
88
|
+
await startupRetry_wait(turn);
|
|
89
|
+
}
|
|
90
|
+
return last;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Starts a warm-up behind the prompt instead of in front of it.
|
|
94
|
+
*
|
|
95
|
+
* The checkpoint restore has already put these listings in the cache, and
|
|
96
|
+
* a stale one is served at once and refreshed behind, so blocking on the
|
|
97
|
+
* fetch buys freshness that arrives anyway a moment later with nobody
|
|
98
|
+
* waiting. Measured against a live CUBE: `/PUBLIC` costs 8.4s and
|
|
99
|
+
* `/SHARED` 9.3s — eighteen seconds an operator spent watching a prompt
|
|
100
|
+
* that could already have been theirs.
|
|
101
|
+
*
|
|
102
|
+
* A deferred step leaves the boot failure gate with this call, so its
|
|
103
|
+
* failure is announced afterwards rather than holding the daemon. From its
|
|
104
|
+
* start to its outcome it is held as still warming, which every surface
|
|
105
|
+
* reads from the prompt context.
|
|
106
|
+
*
|
|
107
|
+
* The pending row is the only thing printed here. The attempts themselves
|
|
108
|
+
* run without the spinner helper: its plain-log stand-in printed the same
|
|
109
|
+
* label and message again, untagged, directly under the pending row.
|
|
110
|
+
*
|
|
111
|
+
* @param label - Stable boot-step label.
|
|
112
|
+
* @param message - What the row says while it runs.
|
|
113
|
+
* @param reporter - Host status logger, or null.
|
|
114
|
+
* @param settlement - Whether the readout persists to take the outcome
|
|
115
|
+
* row: the daemon face keeps its boot log, so `[ OK ]` and `[FAIL]`
|
|
116
|
+
* land there when the step settles; an interactive readout has scrolled
|
|
117
|
+
* away, and the prompt carries a failure instead.
|
|
118
|
+
* @param action - The warm-up itself.
|
|
119
|
+
* @param describe - Words for a successful outcome's row.
|
|
120
|
+
* @returns The step's label and the promise of its outcome.
|
|
121
|
+
*/
|
|
122
|
+
function warmup_defer(label, message, reporter, settlement, action, describe) {
|
|
123
|
+
reporter?.row_log('pending', label, message);
|
|
124
|
+
warmupPending_note(label);
|
|
125
|
+
const outcomes = settlement ? reporter : null;
|
|
126
|
+
// A deferred step keeps the bounded retry policy a blocking one had: a
|
|
127
|
+
// transient failure should be retried before it is announced.
|
|
128
|
+
const settled = startupAttempts_run(label, outcomes, action)
|
|
129
|
+
.catch((error) => ({
|
|
130
|
+
ok: false,
|
|
131
|
+
message: error instanceof Error ? error.message : String(error),
|
|
132
|
+
}))
|
|
133
|
+
.then((outcome) => {
|
|
134
|
+
warmupPending_clear(label);
|
|
135
|
+
// A failure is held until a later attempt succeeds, so a surface
|
|
136
|
+
// whose readout has scrolled away still announces it at the prompt.
|
|
137
|
+
if (outcome.ok) {
|
|
138
|
+
warmupFailure_clear(label);
|
|
139
|
+
outcomes?.row_log('ok', label, describe(outcome));
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
const failure = outcome.message ?? `${label} warm-up failed`;
|
|
143
|
+
warmupFailure_note(label, failure);
|
|
144
|
+
outcomes?.row_log('fail', label, failure);
|
|
145
|
+
}
|
|
146
|
+
return outcome;
|
|
147
|
+
});
|
|
148
|
+
return { label, settled };
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Renders the age of the oldest restored folder listing.
|
|
152
|
+
*
|
|
153
|
+
* A restore's count says how much came back; its age says whether any of
|
|
154
|
+
* it is worth having. Read after the restore, so the reported age is the
|
|
155
|
+
* checkpoint's own, not this session's.
|
|
156
|
+
*
|
|
157
|
+
* @returns A leading-comma phrase such as `, oldest 3 days`, or an empty
|
|
158
|
+
* string when the cache holds nothing to age.
|
|
159
|
+
*/
|
|
160
|
+
function restoreAge_describe() {
|
|
161
|
+
const oldest = listCache_get().stats_get().oldestAge;
|
|
162
|
+
if (oldest === null)
|
|
163
|
+
return '';
|
|
164
|
+
const minutes = Math.floor(oldest / 60_000);
|
|
165
|
+
if (minutes < 1)
|
|
166
|
+
return ', all fresh';
|
|
167
|
+
if (minutes < 60)
|
|
168
|
+
return `, oldest ${String(minutes)} min`;
|
|
169
|
+
const hours = Math.floor(minutes / 60);
|
|
170
|
+
if (hours < 48)
|
|
171
|
+
return `, oldest ${count_noun(hours, 'hour')}`;
|
|
172
|
+
return `, oldest ${count_noun(Math.floor(hours / 24), 'day')}`;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* The identity whose checkpoints this process may write, once a boot has
|
|
176
|
+
* restored them.
|
|
177
|
+
*/
|
|
178
|
+
let flushIdentity = null;
|
|
179
|
+
/**
|
|
180
|
+
* The connected session's identity, the name its checkpoints are kept under:
|
|
181
|
+
* the same name the daemon's berth carries.
|
|
182
|
+
*
|
|
183
|
+
* @returns The normalised identity, or null when the session is not connected.
|
|
184
|
+
*/
|
|
185
|
+
async function sessionIdentity_name() {
|
|
186
|
+
const identity = await backend_get().session.identity_get();
|
|
187
|
+
return identity.connected ? identityName_spell(identity.user, identity.where) : null;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Restores the PACS replay index for a run that has no warm-up.
|
|
191
|
+
*
|
|
192
|
+
* `chell -c` and `chell -f` skip the boot warm-up entirely — the right call
|
|
193
|
+
* for a one-shot, which should not walk a CUBE to answer one command. But
|
|
194
|
+
* it left the replay index neither restored nor written, so a scripted
|
|
195
|
+
* cohort re-asked the PACS every single time, and the audit workflow the
|
|
196
|
+
* fan-out exists for was the one workflow replay never reached.
|
|
197
|
+
*
|
|
198
|
+
* Restoring is a file read of what a previous run already paid for; no
|
|
199
|
+
* sweep, no CUBE call, no watcher — the flush at exit does the writing.
|
|
200
|
+
*
|
|
201
|
+
* @param user - The authenticated user, when there is one.
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```ts
|
|
205
|
+
* await queryCheckpoint_prime(context.user ?? undefined);
|
|
206
|
+
* ```
|
|
207
|
+
*/
|
|
208
|
+
export async function queryCheckpoint_prime(user) {
|
|
209
|
+
if (session.offline || user === undefined)
|
|
210
|
+
return;
|
|
211
|
+
const identity = await sessionIdentity_name();
|
|
212
|
+
if (identity === null)
|
|
213
|
+
return;
|
|
214
|
+
flushIdentity = identity;
|
|
215
|
+
const restored = await queryIndexCheckpoint_restore(identity).catch(() => ({ restored: false, count: 0, reason: 'unread' }));
|
|
216
|
+
// The index holds the whole of the checkpoint (or there was none to hold): from here it is written as it
|
|
217
|
+
// stands. A checkpoint that could not be read is not claimed: what this run learns is added to the file.
|
|
218
|
+
if (restored.restored || restored.reason === 'no query index')
|
|
219
|
+
queryIndexCheckpoint_hold(identity);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Writes what this run learned about prior PACS queries, now.
|
|
223
|
+
*
|
|
224
|
+
* The checkpoint's own writer is debounced and its timer is unref'd, so a
|
|
225
|
+
* one-shot `chell -c` exits before it fires — which meant a cohort asked by
|
|
226
|
+
* a script was re-asked in full by the next script, the replay saving
|
|
227
|
+
* nothing across exactly the boundary an audit workflow runs on. A
|
|
228
|
+
* process that is about to exit flushes instead of hoping.
|
|
229
|
+
*
|
|
230
|
+
* Silent by design: nothing an operator asked for failed if this write did.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* ```ts
|
|
234
|
+
* await queryCheckpoint_flush();
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
export async function queryCheckpoint_flush() {
|
|
238
|
+
if (flushIdentity === null)
|
|
239
|
+
return;
|
|
240
|
+
// Each identity's index goes under its own name: one that left during the run was written as it left (and
|
|
241
|
+
// is waited for here); what the index holds now is written for whoever is connected now, who may not be
|
|
242
|
+
// the one the run began as.
|
|
243
|
+
const now = await sessionIdentity_name().catch(() => null);
|
|
244
|
+
await queryIndexCheckpoint_finish(now).catch(() => {
|
|
245
|
+
/* the index rebuilds itself from CUBE on the next boot */
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Warms startup caches and begins non-blocking job-topology warming.
|
|
250
|
+
*
|
|
251
|
+
* @param flags - Resource caches selected by the host's boot flags.
|
|
252
|
+
* @param user - Authenticated username used to construct the feed path.
|
|
253
|
+
* @param interactive - Whether progress may use an interactive spinner.
|
|
254
|
+
* @param reporter - Host status logger, or null for silent status reporting.
|
|
255
|
+
* @param reportSettlement - Whether to report outcomes that arrive after
|
|
256
|
+
* boot (the topology walk, the steps warming behind the prompt); daemon
|
|
257
|
+
* hosts enable this because the face keeps the readout, while interactive
|
|
258
|
+
* hosts use prompt progress.
|
|
259
|
+
* @param statusWidth - The width of the host's status column, so a running
|
|
260
|
+
* step's label lines up with its finished row; absent, the spinner's own.
|
|
261
|
+
* @returns Cache counts and the labels of any failed warm-up operations.
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* ```ts
|
|
265
|
+
* const cache: StartupWarmupCache = await startupWarmup_run(flags, 'chris', true, bootLogger, false, 9);
|
|
266
|
+
* ```
|
|
267
|
+
*/
|
|
268
|
+
export async function startupWarmup_run(flags, user, interactive, reporter, reportSettlement = false, statusWidth) {
|
|
269
|
+
const draw = { interactive, statusWidth };
|
|
270
|
+
// One piece of work, begun as whoever is connected at boot: the walks it leaves running behind the prompt
|
|
271
|
+
// put nothing in the caches once someone else has connected.
|
|
272
|
+
return identityScope_run(() => startupWarmup_walk(flags, user, draw, reporter, reportSettlement));
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Restores the checkpoints a connected identity left: its folder listings
|
|
276
|
+
* (stale-marked: the first `ls` anywhere already listed renders at once and
|
|
277
|
+
* revalidates behind itself; the row reports age as well as count, because a
|
|
278
|
+
* count alone says nothing about whether the restore is worth having) and
|
|
279
|
+
* what has already been asked of a PACS (expensive to build — every row of
|
|
280
|
+
* the collection drags its compressed result — and cheap to keep, so it is
|
|
281
|
+
* restored rather than swept again). Each is then watched and written.
|
|
282
|
+
*
|
|
283
|
+
* @param reporter - Host status logger, or null.
|
|
284
|
+
* @returns The identity whose checkpoints were restored, or null when the session names none.
|
|
285
|
+
*/
|
|
286
|
+
async function checkpoints_restore(reporter) {
|
|
287
|
+
const identity = await sessionIdentity_name();
|
|
288
|
+
if (identity === null)
|
|
289
|
+
return null;
|
|
290
|
+
flushIdentity = identity;
|
|
291
|
+
const listings = await listCheckpoint_restore(identity);
|
|
292
|
+
listCheckpoint_watch(identity);
|
|
293
|
+
reporter?.row_log(listings.restored ? 'ok' : 'skip', 'Folders', listings.restored
|
|
294
|
+
? `Restored ${count_noun(listings.count, 'folder listing')}${restoreAge_describe()}, stale until revisited`
|
|
295
|
+
: (listings.reason ?? 'No folder-listing checkpoint'));
|
|
296
|
+
const queries = await queryIndexCheckpoint_restore(identity);
|
|
297
|
+
// The index now holds the whole of this identity's checkpoint, and is written as it stands from here.
|
|
298
|
+
// Said after the restore, never before it: until then a write adds to the file and replaces nothing.
|
|
299
|
+
// (Not heard, as the watcher is not installed, if someone else connected while the disk was read.)
|
|
300
|
+
if (queries.restored || queries.reason === 'no query index')
|
|
301
|
+
queryIndexCheckpoint_hold(identity);
|
|
302
|
+
queryIndexCheckpoint_watch(identity);
|
|
303
|
+
reporter?.row_log(queries.restored ? 'ok' : 'skip', 'Queries', queries.restored
|
|
304
|
+
? `Restored ${count_noun(queries.count, 'PACS query', 'PACS queries')} already asked`
|
|
305
|
+
: (queries.reason ?? 'No PACS query index'));
|
|
306
|
+
return identity;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Prefetches `/bin` for completions, a step that blocks boot: its plugin and
|
|
310
|
+
* pipeline counts, or its failure, which gates.
|
|
311
|
+
*
|
|
312
|
+
* @param draw - How the step draws while it runs.
|
|
313
|
+
* @param reporter - Host status logger, or null.
|
|
314
|
+
* @param result - The warm-up's counts and failures; written.
|
|
315
|
+
*/
|
|
316
|
+
async function pluginsStep_run(draw, reporter, result) {
|
|
317
|
+
const pluginsResult = await startupPrefetch_retry('Plugins', 'Prefetching /bin for completions', draw, reporter, async () => {
|
|
318
|
+
const listingResult = await vfs.data_get('/bin');
|
|
319
|
+
if (listingResult.ok) {
|
|
320
|
+
return {
|
|
321
|
+
ok: true,
|
|
322
|
+
count: listingResult.value.filter((item) => item.type === 'plugin').length,
|
|
323
|
+
pipelineCount: listingResult.value.filter((item) => item.type === 'pipeline').length,
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
const error = errorStack.stack_pop();
|
|
327
|
+
return { ok: false, message: error ? error_stripDebugPrefix(error.message) : 'Failed to prefetch /bin' };
|
|
328
|
+
});
|
|
329
|
+
if (pluginsResult.ok) {
|
|
330
|
+
result.plugins = pluginsResult.count;
|
|
331
|
+
result.pipelines = pluginsResult.pipelineCount;
|
|
332
|
+
reporter?.row_log('ok', 'Plugins', `Cached ${count_noun(pluginsResult.count ?? 0, 'plugin')}`);
|
|
333
|
+
reporter?.row_log('ok', 'Pipelines', `Cached ${count_noun(pluginsResult.pipelineCount ?? 0, 'pipeline')}`);
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
result.failures.push('Plugins');
|
|
337
|
+
reporter?.row_log('fail', 'Plugins', pluginsResult.message || 'Failed to prefetch /bin');
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Resolves `/etc/group` behind the prompt.
|
|
342
|
+
*
|
|
343
|
+
* @param reporter - Host status logger, or null.
|
|
344
|
+
* @param reportSettlement - Whether outcomes arriving after boot are reported.
|
|
345
|
+
* @param result - The warm-up's deferred steps; written.
|
|
346
|
+
*/
|
|
347
|
+
function groupsStep_defer(reporter, reportSettlement, result) {
|
|
348
|
+
if (session.offline) {
|
|
349
|
+
reporter?.row_log('skip', 'Groups', 'Offline mode');
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
result.deferred.push(warmup_defer('Groups', 'Resolving /etc/group behind the prompt', reporter, reportSettlement, async () => {
|
|
353
|
+
const projection = await vfsDispatcher.read('/etc/group');
|
|
354
|
+
if (projection.ok) {
|
|
355
|
+
const count = projection.value.split('\n').filter(Boolean).length;
|
|
356
|
+
return { ok: true, count };
|
|
357
|
+
}
|
|
358
|
+
const error = errorStack.stack_pop();
|
|
359
|
+
return { ok: false, message: error?.message ?? 'Failed to resolve /etc/group' };
|
|
360
|
+
}, (outcome) => `Cached ${count_noun(outcome.count ?? 0, 'group')}`));
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Indexes the PACS query back catalogue behind the prompt. It resumes from
|
|
364
|
+
* the index's floor, so a restored index walks only what arrived since — and
|
|
365
|
+
* a cold one pays the whole walk once, behind the prompt, never in front of
|
|
366
|
+
* a query.
|
|
367
|
+
*
|
|
368
|
+
* @param reporter - Host status logger, or null.
|
|
369
|
+
* @param reportSettlement - Whether outcomes arriving after boot are reported.
|
|
370
|
+
* @param checkpointIdentity - The identity whose checkpoints this boot restored, or null.
|
|
371
|
+
* @returns The deferred step.
|
|
372
|
+
*/
|
|
373
|
+
function queriesSweep_defer(reporter, reportSettlement, checkpointIdentity) {
|
|
374
|
+
return warmup_defer('Queries', 'Indexing prior PACS queries behind the prompt', reporter, reportSettlement, async () => {
|
|
375
|
+
// Every identity's queries, not just this one's: the index is also
|
|
376
|
+
// the log that `/net/pacs/queries` lists, and that log has always
|
|
377
|
+
// shown whatever CUBE holds. A replay stays scoped to the asking
|
|
378
|
+
// identity by the index key, not by what was swept.
|
|
379
|
+
const swept = await queryIndex_sweep();
|
|
380
|
+
if (!swept.ok) {
|
|
381
|
+
const error = errorStack.stack_pop();
|
|
382
|
+
return { ok: false, message: error?.message ?? 'Failed to index prior PACS queries' };
|
|
383
|
+
}
|
|
384
|
+
if (swept.value.bounded) {
|
|
385
|
+
return {
|
|
386
|
+
ok: false,
|
|
387
|
+
message: `${count_noun(swept.value.total, 'PACS query', 'PACS queries')} indexed, stopped at the page bound — the index is incomplete`,
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
// Made durable here rather than left to the debounced writer: that
|
|
391
|
+
// timer is unref'd, so a one-shot `chell -c` would exit before it
|
|
392
|
+
// fired and throw away a walk of the whole collection. The sweep is
|
|
393
|
+
// the expensive thing; it is saved the moment it is worth saving.
|
|
394
|
+
if (checkpointIdentity !== null) {
|
|
395
|
+
await queryIndexCheckpoint_save(checkpointIdentity).catch(() => {
|
|
396
|
+
/* the debounced writer retries on the next mutation */
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
return {
|
|
400
|
+
ok: true,
|
|
401
|
+
count: swept.value.total,
|
|
402
|
+
pipelineCount: swept.value.indexed,
|
|
403
|
+
};
|
|
404
|
+
},
|
|
405
|
+
// The amount of queries the index holds, and how many this top-up added
|
|
406
|
+
// — a resume that found nothing new says just the total, not "1".
|
|
407
|
+
(outcome) => {
|
|
408
|
+
const total = outcome.count ?? 0;
|
|
409
|
+
const fresh = outcome.pipelineCount ?? 0;
|
|
410
|
+
return `${count_noun(total, 'PACS query', 'PACS queries')} indexed${fresh > 0 ? `, ${String(fresh)} new` : ''}`;
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Warms the identity's feeds, `/PUBLIC`, `/SHARED` and the PACS query index, all behind the prompt.
|
|
415
|
+
*
|
|
416
|
+
* @param flags - Resource caches selected by the host's boot flags.
|
|
417
|
+
* @param user - Authenticated username used to construct the feed path.
|
|
418
|
+
* @param reporter - Host status logger, or null.
|
|
419
|
+
* @param reportSettlement - Whether outcomes arriving after boot are reported.
|
|
420
|
+
* @param checkpointIdentity - The identity whose checkpoints this boot restored, or null.
|
|
421
|
+
* @param result - The warm-up's deferred steps; written.
|
|
422
|
+
*/
|
|
423
|
+
function feedSteps_defer(flags, user, reporter, reportSettlement, checkpointIdentity, result) {
|
|
424
|
+
if (session.offline || !flags.feeds) {
|
|
425
|
+
reporter?.row_log('skip', 'Feeds', session.offline ? 'Offline mode' : 'Prefetch disabled');
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
const feedPath = user ? `/home/${user}/feeds` : undefined;
|
|
429
|
+
if (feedPath) {
|
|
430
|
+
result.deferred.push(warmup_defer('Feeds', `Warming ${feedPath} behind the prompt`, reporter, reportSettlement, () => prefetch_path(feedPath), (outcome) => `Cached ${count_noun(outcome.count ?? 0, 'item')} from ${feedPath}`));
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
reporter?.row_log('skip', 'Feeds', 'No user context');
|
|
434
|
+
}
|
|
435
|
+
if (flags.publicFeeds) {
|
|
436
|
+
result.deferred.push(warmup_defer('Public', 'Warming /PUBLIC behind the prompt', reporter, reportSettlement, () => prefetch_path('/PUBLIC'), (outcome) => `Cached ${count_noun(outcome.count ?? 0, 'item')} from /PUBLIC`));
|
|
437
|
+
}
|
|
438
|
+
// `/SHARED` is where another identity's work becomes visible, and it
|
|
439
|
+
// had no step at all: nothing to fail, so a CUBE that stopped serving
|
|
440
|
+
// shared paths stayed silent until somebody went looking.
|
|
441
|
+
result.deferred.push(warmup_defer('Shared', 'Warming /SHARED behind the prompt', reporter, reportSettlement, () => prefetch_path('/SHARED'), (outcome) => `Cached ${count_noun(outcome.count ?? 0, 'item')} from /SHARED`));
|
|
442
|
+
result.deferred.push(queriesSweep_defer(reporter, reportSettlement, checkpointIdentity));
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* The Jobs row: what was restored and what walks behind, or why a
|
|
446
|
+
* checkpoint was refused. A checkpoint that was there and refused is said,
|
|
447
|
+
* with why: a boot that reads like a first boot hides a torn index.
|
|
448
|
+
*
|
|
449
|
+
* @param checkpoint - The /proc checkpoint's restore, or null when none was tried.
|
|
450
|
+
* @param jobsResult - The index's first step.
|
|
451
|
+
* @param rosterAdded - The feeds the roster's delta brought in.
|
|
452
|
+
* @returns The row's message.
|
|
453
|
+
*/
|
|
454
|
+
function jobsLine_compose(checkpoint, jobsResult, rosterAdded) {
|
|
455
|
+
const torn = checkpoint?.torn?.length ?? 0;
|
|
456
|
+
const refused = checkpoint !== null && !checkpoint.restored && checkpoint.reason !== undefined && checkpoint.reason !== 'no checkpoint';
|
|
457
|
+
return checkpoint?.restored
|
|
458
|
+
? `Restored ${count_noun(checkpoint.count, 'job')}${checkpoint.migrated ? ' (checkpoint migrated to per-feed shards)' : ''}; ${count_noun(jobsResult.count ?? 0, 'feed')}, ${String(rosterAdded.length)} new — full roster refresh in background${torn > 0 ? `; ${count_noun(torn, 'feed')} with a torn shard walks again` : ''}`
|
|
459
|
+
: `${refused ? `Checkpoint refused (${checkpoint?.reason ?? ''}); indexing` : 'Indexing'} the feed list in background — /proc/jobs fills in as it lands`;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Begins the topology behind the prompt. Restored topology is in service
|
|
463
|
+
* now and visits keep each feed current; the full roster walk catches feeds
|
|
464
|
+
* that changed or vanished while the daemon was away, and the data facts
|
|
465
|
+
* and package sweep a restore skips run beside it. A cold boot's topology
|
|
466
|
+
* follows its index walk. The index whole, the session lays the universe
|
|
467
|
+
* out once for every surface (in a worker thread, off the lane).
|
|
468
|
+
*
|
|
469
|
+
* @param checkpoint - The /proc checkpoint's restore, or null when none was tried.
|
|
470
|
+
* @param coldIndex - The cold index walk, when one was begun.
|
|
471
|
+
* @param reporter - Host status logger, or null.
|
|
472
|
+
* @param reportSettlement - Whether outcomes arriving after boot are reported.
|
|
473
|
+
*/
|
|
474
|
+
function topologySweep_follow(checkpoint, coldIndex, reporter, reportSettlement) {
|
|
475
|
+
let topologySweep;
|
|
476
|
+
if (checkpoint?.restored) {
|
|
477
|
+
procCache_get().warmup_complete();
|
|
478
|
+
topologySweep = procRoster_sync(true).then((changed) => {
|
|
479
|
+
if (changed.length > 0) {
|
|
480
|
+
reporter?.row_log('ok', 'Roster', `${count_noun(changed.length, 'feed')} moved while away; each refreshes on its next visit`);
|
|
481
|
+
}
|
|
482
|
+
// No sweep runs after a restore, so its tails do not either:
|
|
483
|
+
// what each feed's data is gets read here, quietly, for any feed
|
|
484
|
+
// the checkpoint does not yet know it for.
|
|
485
|
+
void procDataFacts_start();
|
|
486
|
+
});
|
|
487
|
+
// Nor does its package sweep: an identity with no whole package store of its own is swept beside the walk, never holding it.
|
|
488
|
+
void pipelinePackages_restore().then((whole) => (whole ? undefined : pipelinePackages_sweep()))
|
|
489
|
+
.catch((error) => { reporter?.row_log('fail', 'Packages', `Sweep failed: ${error instanceof Error ? error.message : String(error)}`); });
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
const index = coldIndex ?? Promise.resolve([]);
|
|
493
|
+
topologySweep = index.then(() => procTopology_warmup());
|
|
494
|
+
}
|
|
495
|
+
// A layout it already keeps is left as it is.
|
|
496
|
+
void topologySweep.then(() => {
|
|
497
|
+
if (procTopology_status().state !== 'complete')
|
|
498
|
+
return;
|
|
499
|
+
void universeLayouts_warm(() => procUniverseModel_build().feeds);
|
|
500
|
+
}, () => { });
|
|
501
|
+
if (!reportSettlement) {
|
|
502
|
+
void topologySweep.catch(() => { });
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
void topologySweep.then(() => {
|
|
506
|
+
const topology = procTopology_status();
|
|
507
|
+
if (topology.state !== 'complete') {
|
|
508
|
+
reporter?.row_log('fail', 'Topology', `Warm-up failed: ${topology.failure ?? 'the topology index did not complete'}`);
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
const progress = procCache_get().warmupProgress_get();
|
|
512
|
+
const total = progress.total > 0 ? progress.total : progress.loaded;
|
|
513
|
+
reporter?.row_log('ok', 'Topology', `Ready — ${String(progress.loaded)}/${count_noun(total, 'job')} indexed`);
|
|
514
|
+
}, (error) => {
|
|
515
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
516
|
+
reporter?.row_log('fail', 'Topology', `Warm-up failed: ${message}`);
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Indexes /proc/jobs, a step that blocks boot: a restored roster goes into
|
|
521
|
+
* service on a delta (feeds newer than the highest restored id); a cold
|
|
522
|
+
* boot's walk of the whole feed index (a page per hundred feeds, each page
|
|
523
|
+
* CUBE's slowest list) runs behind the listening daemon, as a restored
|
|
524
|
+
* roster's full walk does — in front of it, an identity that sees thousands
|
|
525
|
+
* of feeds outlasted the door's wait and never booted. A /proc read that
|
|
526
|
+
* arrives first joins the walk. The topology then follows behind the prompt.
|
|
527
|
+
*
|
|
528
|
+
* @param user - Authenticated username, when there is one.
|
|
529
|
+
* @param draw - How the step draws while it runs.
|
|
530
|
+
* @param reporter - Host status logger, or null.
|
|
531
|
+
* @param reportSettlement - Whether outcomes arriving after boot are reported.
|
|
532
|
+
* @param result - The warm-up's failures; written.
|
|
533
|
+
*/
|
|
534
|
+
async function jobsStep_run(user, draw, reporter, reportSettlement, result) {
|
|
535
|
+
let checkpoint = null;
|
|
536
|
+
if (reportSettlement && user) {
|
|
537
|
+
const identity = await sessionIdentity_name();
|
|
538
|
+
if (identity !== null) {
|
|
539
|
+
checkpoint = await procCheckpoint_restore(identity);
|
|
540
|
+
procCheckpoint_watch(identity);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
const indexing = { rosterAdded: [], coldIndex: null };
|
|
544
|
+
const jobsResult = await startupPrefetch_retry('Jobs', 'Indexing /proc/jobs (feed list)...', draw, reporter, async () => {
|
|
545
|
+
try {
|
|
546
|
+
if (checkpoint?.restored) {
|
|
547
|
+
indexing.rosterAdded = await procRoster_bootSync();
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
const coldIndex = procCache_refresh();
|
|
551
|
+
indexing.coldIndex = coldIndex;
|
|
552
|
+
coldIndex.catch(() => {
|
|
553
|
+
if (procCache_get().lifecycle_get().checkpointAt)
|
|
554
|
+
procCache_get().cache_clear();
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
return { ok: true, count: procCache_get().feedIDs_get().length };
|
|
558
|
+
}
|
|
559
|
+
catch (error) {
|
|
560
|
+
if (procCache_get().lifecycle_get().checkpointAt)
|
|
561
|
+
procCache_get().cache_clear();
|
|
562
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
563
|
+
return { ok: false, message };
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
if (!jobsResult.ok) {
|
|
567
|
+
result.failures.push('Jobs');
|
|
568
|
+
reporter?.row_log('fail', 'Jobs', jobsResult.message || 'Failed to index /proc/jobs');
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
reporter?.row_log('ok', 'Jobs', jobsLine_compose(checkpoint, jobsResult, indexing.rosterAdded));
|
|
572
|
+
errorStack.scope_run(() => { topologySweep_follow(checkpoint, indexing.coldIndex, reporter, reportSettlement); });
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* The warm-up itself: see {@link startupWarmup_run}, whose arguments these are.
|
|
576
|
+
*
|
|
577
|
+
* Feed movement dirties the listings inside a feed; an arrival or a
|
|
578
|
+
* departure changes the folder a feed appears *in*. The roster speaks only
|
|
579
|
+
* in feed ids, so the host names those folders once here, and says which is
|
|
580
|
+
* which: a public feed landing must not dirty this identity's own feeds
|
|
581
|
+
* folder. The shared and public roots are known without an authenticated
|
|
582
|
+
* user; only the identity's own folder needs one.
|
|
583
|
+
*
|
|
584
|
+
* @param flags - Resource caches selected by the host's boot flags.
|
|
585
|
+
* @param user - Authenticated username used to construct the feed path.
|
|
586
|
+
* @param draw - How the blocking steps draw while they run.
|
|
587
|
+
* @param reporter - Host status logger, or null for silent status reporting.
|
|
588
|
+
* @param reportSettlement - Whether to report outcomes that arrive after boot.
|
|
589
|
+
* @returns Cache counts and the labels of any failed warm-up operations.
|
|
590
|
+
*
|
|
591
|
+
* @example
|
|
592
|
+
* const cache: StartupWarmupCache = await startupWarmup_walk(flags, user, { interactive: true, statusWidth: 9 }, null, false);
|
|
593
|
+
*/
|
|
594
|
+
async function startupWarmup_walk(flags, user, draw, reporter, reportSettlement) {
|
|
595
|
+
const result = { failures: [], deferred: [] };
|
|
596
|
+
procCache_get().rosterFolders_set({
|
|
597
|
+
...(user !== undefined ? { owner: user, own: `/home/${user}/feeds` } : {}),
|
|
598
|
+
shared: '/SHARED',
|
|
599
|
+
public: '/PUBLIC',
|
|
600
|
+
});
|
|
601
|
+
// A step with nothing to do says so at once: the warm-up waits only on work, so an offline session's
|
|
602
|
+
// skipped rows are all said before the warm-up first waits.
|
|
603
|
+
const checkpointIdentity = !session.offline && user ? await checkpoints_restore(reporter) : null;
|
|
604
|
+
if (!session.offline && flags.plugins) {
|
|
605
|
+
await pluginsStep_run(draw, reporter, result);
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
608
|
+
const why = session.offline ? 'Offline mode' : 'Prefetch disabled';
|
|
609
|
+
reporter?.row_log('skip', 'Plugins', why);
|
|
610
|
+
reporter?.row_log('skip', 'Pipelines', why);
|
|
611
|
+
}
|
|
612
|
+
groupsStep_defer(reporter, reportSettlement, result);
|
|
613
|
+
feedSteps_defer(flags, user, reporter, reportSettlement, checkpointIdentity, result);
|
|
614
|
+
if (!session.offline && flags.jobs) {
|
|
615
|
+
await jobsStep_run(user, draw, reporter, reportSettlement, result);
|
|
616
|
+
}
|
|
617
|
+
else {
|
|
618
|
+
reporter?.row_log('skip', 'Jobs', session.offline ? 'Offline mode' : 'Prefetch disabled');
|
|
619
|
+
}
|
|
620
|
+
return result;
|
|
621
|
+
}
|
|
622
|
+
//# sourceMappingURL=warmup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warmup.js","sourceRoot":"","sources":["../../src/chris/warmup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,aAAa,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,0BAA0B,EAAoL,MAAM,eAAe,CAAC;AACtf,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAErF,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,eAAe,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,aAAa,EAA2B,MAAM,eAAe,CAAC;AAEjP,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAwB,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAA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