Kui API Documentation - v11.0.0 / @kui-shell/core
- Abortable
- Arguments
- BadgeRegistration
- BadgeSpec
- Block
- Breadcrumb
- CodedError
- CommandCompleteEvent
- CommandLine
- CommandOptions
- CommandStartEvent
- DescriptionList
- EditableSpec
- Evaluator
- Event
- ExecOptions
- FlowControllable
- HistoryLine
- MetadataNamedResource
- ModeRegistration
- ParsedOptions
- PreloadRegistrar
- REPL
- RadioTable
- RadioTableRow
- RawResponse
- Registrar
- ReplEval
- Resizable
- ResourceByReference
- ResourceWithMetadata
- SaveError
- ScalarContent
- Selectable
- SourceRef
- Split
- Tab
- TabCompletionSpec
- ToolbarAlert
- ToolbarText
- UsageModel
- UsageRow
- WatchPusher
- Watchable
- Watcher
- WithSourceReferences
- XtermResponse
- XtermResponseCell
- Badge
- Button
- CommandHandler
- CommandStringContent
- CommentaryResponse
- CompletionResponse
- Content
- Editable
- ExecOptionsWithUUID
- FunctionThatProducesContent
- Job
- KResponse
- Link
- Menu
- MixedResponse
- Mode
- ModeDeclaration
- ModeFilter
- MultiModalMode
- MultiModalResponse
- NavResponse
- NewSplitRequest
- PluginRegistration
- PreloadRegistration
- PrettyUsageModel
- RadioTableCell
- ReactProvider
- ReactResponse
- ResourceByReferenceWithContent
- ResourceWithMetadataWithContent
- ScalarResource
- ScalarResponse
- SnapshottedEvent
- Stream
- Streamable
- StringContent
- StringDiffContent
- SupportedStringContent
- Suspendable
- TabLayoutModificationResponse
- ToolbarProps
- ViewTransformer
- History
- _split
- addRelevantModes
- bootIntoSandbox
- cellShouldHaveBadge
- commandsOfferedByPlugin
- disableInputQueueing
- doCancel
- doEval
- empty
- executeSequentially
- findCompletions
- getCurrentTab
- getPrimaryTabId
- getTab
- getTabId
- hasContent
- hasDisplayName
- hasSourceReferences
- hideReplayOutput
- i18nFromMap
- initializeSession
- internalBeCarefulExec
- internalBeCarefulPExec
- is404
- is404or409
- is409
- isAbortableResponse
- isButton
- isCodedError
- isCommandHandlerWithEvents
- isCommandStringContent
- isCommentaryResponse
- isCommentarySectionBreak
- isCursorMovement
- isDescriptionList
- isError
- isExecutableClient
- isFunctionContent
- isLink
- isLinkWithCommand
- isLinkWithHref
- isMarkdownResponse
- isMessageWithCode
- isMessageWithUsageModel
- isMixedResponse
- isMultiModalResponse
- isNavResponse
- isNewSplitRequest
- isOfflineClient
- isPopup
- isRadioTable
- isRandomErrorResponse1
- isRandomErrorResponse2
- isReactProvider
- isReactResponse
- isReadOnlyClient
- isResizable
- isResourceByReference
- isResourceWithMetadata
- isScalarContent
- isScalarResponse
- isStringDiffContent
- isStringResponse
- isStringWithOptionalContentType
- isSupportedContentType
- isSupportedToolbarTextType
- isSuspendable
- isTabLayoutModificationResponse
- isTable
- isTableWithCount
- isTableWithTimestamp
- isTopLevelTab
- isUsageError
- isViewButton
- isWatchable
- isXtermErrorResponse
- isXtermResponse
- maybeKuiLink
- offQuit
- onQuit
- pexecInCurrentTab
- pluginUserHome
- radioTableAddHint
- radioTableCellToString
- radioTableHintsAsCss
- registerBadge
- registerMode
- registerModeWhen
- registerTabCompletionEnumerator
- registerTabState
- renderUsage
- sameRow
- sameTab
- setEvaluatorImpl
- split
- splitFor
- splitIntoPipeStages
- teeToFile
- tellMain
- typeahead
- unparse
- withLanguage
Ƭ Badge: string
| BadgeSpec
| Element
packages/core/src/webapp/views/registrar/badges.ts:35
Ƭ Button<T
>: DrilldownButton
<T
> | ViewButton
<T
>
Name | Type |
---|---|
T |
ResourceWithMetadata |
packages/core/src/models/mmr/types.ts:142
Ƭ CommandHandler<T
, O
>: (args
: Arguments
<O
>) => T
| Promise
<T
>
Name | Type |
---|---|
T |
extends KResponse |
O |
extends ParsedOptions |
▸ (args
): T
| Promise
<T
>
base command handler
Name | Type |
---|---|
args |
Arguments <O > |
T
| Promise
<T
>
packages/core/src/models/command.ts:215
Ƭ CommandStringContent: WithOptionalContentType
<SupportedStringContent
> & { contentFrom
: string
}
Content
as CommandStringContent
will be executed via a
REPL.qexec; the command is assumed to return either
ScalarRersource
or ScalarContent
.
packages/core/src/models/mmr/content-types.ts:173
Ƭ CommentaryResponse: Object
Name | Type |
---|---|
apiVersion |
"kui-shell/v1" |
kind |
"CommentaryResponse" |
props |
Object |
props.baseUrl? |
string |
props.children |
string |
props.codeBlockResponses? |
{ response : KResponse ; status : "done" | "error" }[] |
props.edit? |
boolean |
props.filepath? |
string |
props.header? |
boolean |
props.preview? |
boolean |
props.receive? |
string |
props.repl? |
REPL |
props.replace? |
boolean |
props.send? |
string |
props.title? |
string |
packages/core/src/models/CommentaryResponse.ts:21
Ƭ CompletionResponse: string
| { addSpace?
: boolean
; completion
: string
; docs?
: string
; label?
: string
}
packages/core/src/repl/tab-completion.ts:38
Ƭ Content<T
>: ScalarContent
| StringContent
| StringDiffContent
| FunctionContent
<T
> | CommandStringContent
| ReactProvider
The classes of supported Content
are:
ScalarContent
: such as pre-formatted HTML, or orTable
modelStringContent
: a string with an optionalcontentType
FunctionContent<T>
: a function that takes aT
and producesScalarContent
CommandStringContent
: a string to be executed as a Kui command, and producingScalarContent
Name | Type |
---|---|
T |
extends ResourceWithMetadata = ResourceWithMetadata |
packages/core/src/models/mmr/content-types.ts:196
Ƭ Editable: Object
The Resource trait
Name | Type |
---|---|
spec |
EditableSpec |
packages/core/src/models/editable.ts:46
Ƭ ExecOptionsWithUUID: Exclude
<ExecOptions
, "execUUID"
> & Required
<Pick
<ExecOptions
, "execUUID"
>>
Transform the execUUID
field of ExecOptions
to be required.
packages/core/src/models/execOptions.ts:112
Ƭ FunctionThatProducesContent<T
>: (tab
: Tab
, entity
: T
, args
: { argsForMode?
: Arguments
; argvNoOptions
: string
[] ; parsedOptions
: ParsedOptions
}) => ReactProvider
| ScalarResource
| ScalarContent
| Promise
<ScalarResource
| ScalarContent
| ReactProvider
> | CommandStringContent
Name | Type |
---|---|
T |
extends ResourceWithMetadata = ResourceWithMetadata |
▸ (tab
, entity
, args
): ReactProvider
| ScalarResource
| ScalarContent
| Promise
<ScalarResource
| ScalarContent
| ReactProvider
> | CommandStringContent
Content
as FunctionThatProducesContent<T>
is a function that
takes a T
and produces either a resource or some { content,
contentType } wrapper.
Name | Type |
---|---|
tab |
Tab |
entity |
T |
args |
Object |
args.argsForMode? |
Arguments |
args.argvNoOptions |
string [] |
args.parsedOptions |
ParsedOptions |
ReactProvider
| ScalarResource
| ScalarContent
| Promise
<ScalarResource
| ScalarContent
| ReactProvider
> | CommandStringContent
packages/core/src/models/mmr/content-types.ts:141
Ƭ Job: Abortable
& FlowControllable
& Partial
<Resizable
>
packages/core/src/core/jobs/job.ts:44
Ƭ KResponse<Content
>: Entity
<Content
>
A command KResponse
can be any supported Entity
type
Name | Type |
---|---|
Content |
extends any = any |
packages/core/src/models/command.ts:32
Ƭ Link: Label
& Command
| Href
packages/core/src/models/NavResponse.ts:44
Ƭ Menu: Label
& MenuItems
packages/core/src/models/NavResponse.ts:37
Ƭ MixedResponse: MixedResponsePart
[]
packages/core/src/models/entity.ts:158
Ƭ Mode<T
>: MultiModalMode
<T
> | Button
<T
>
Name | Type |
---|---|
T |
ResourceWithMetadata |
packages/core/src/models/mmr/types.ts:75
Ƭ ModeDeclaration<Resource
>: Mode
Name | Type |
---|---|
Resource |
extends ResourceWithMetadata |
packages/core/src/webapp/views/registrar/modes.ts:29
Ƭ ModeFilter<Resource
>: (resource
: Resource
) => boolean
Name | Type |
---|---|
Resource |
extends ResourceWithMetadata |
▸ (resource
): boolean
Name | Type |
---|---|
resource |
Resource |
boolean
packages/core/src/webapp/views/registrar/modes.ts:27
Ƭ MultiModalMode<T
>: Label
& ModeTraits
& VisibilityTraits
& Content
<T
>
A Mode
is a Label
plus some Content
and ModeTraits
Name | Type |
---|---|
T |
ResourceWithMetadata |
packages/core/src/models/mmr/types.ts:81
Ƭ MultiModalResponse<Resource
>: Resource
& View
<Resource
>
A MultiModalResponse
has all the fields of a class of Resource
plus a way to View
those resources.
Name | Type |
---|---|
Resource |
ResourceWithMetadata |
packages/core/src/models/mmr/types.ts:31
Ƭ NavResponse: Object
A NavResponse
is a collection of MultiModalResponse
with menu navigation
Name | Type |
---|---|
apiVersion |
"kui-shell/v1" |
breadcrumbs? |
Breadcrumb [] |
kind |
"NavResponse" |
links? |
Link [] |
menus |
Menu [] |
packages/core/src/models/NavResponse.ts:29
Ƭ NewSplitRequest: Object
Name | Type |
---|---|
modification |
"NewSplit" |
options? |
Object |
options.cmdline? |
string |
options.if? |
string |
options.ifnot? |
string |
options.index? |
number |
options.inverseColors? |
boolean |
options.position? |
"default" | "left-strip" | "bottom-strip" |
options.swap? |
Object |
options.swap.a |
number |
options.swap.b |
number |
packages/core/src/models/TabLayoutModificationResponse.ts:32
Ƭ PluginRegistration: (commandTree
: Registrar
, options?
: { usage
: PrescanUsage
}) => KuiPlugin
▸ (commandTree
, options?
): KuiPlugin
Name | Type |
---|---|
commandTree |
Registrar |
options? |
Object |
options.usage |
PrescanUsage |
KuiPlugin
packages/core/src/models/plugin.ts:26
Ƭ PreloadRegistration: (registrar
: PreloadRegistrar
) => Promise
<void
| void
[]>
▸ (registrar
): Promise
<void
| void
[]>
Name | Type |
---|---|
registrar |
PreloadRegistrar |
Promise
<void
| void
[]>
packages/core/src/models/plugin.ts:41
Ƭ PrettyUsageModel: Object
Name | Type |
---|---|
examples? |
Example [] |
intro? |
string |
options? |
Option [] |
related? |
Related [] |
title |
Title |
usages |
Usage [] |
packages/core/src/core/usage/types.ts:36
Ƭ RadioTableCell: string
| { hints?
: CellShould
| CellShould
[] ; key?
: string
; title?
: string
; value
: string
}
packages/core/src/models/RadioTable.ts:87
Ƭ ReactProvider: Object
Name | Type |
---|---|
react |
(props : ToolbarProps ) => ReactElement <any , string | JSXElementConstructor <any >> |
packages/core/src/models/mmr/content-types.ts:42
Ƭ ReactResponse: Object
Name | Type |
---|---|
react |
ReactNode |
packages/core/src/models/entity.ts:139
Ƭ ResourceByReferenceWithContent<T
>: ResourceByReference
<T
>
Name | Type |
---|---|
T |
extends any = any |
packages/core/src/models/entity.ts:111
Ƭ ResourceWithMetadataWithContent<T
>: ResourceWithMetadata
<T
>
Name | Type |
---|---|
T |
extends any = any |
packages/core/src/models/entity.ts:86
Ƭ ScalarResource: string
| HTMLElement
| Table
| DescriptionList
A ScalarResource
is Any kind of resource that is directly
represented, as opposed to being implicitly represented by a
function call.
packages/core/src/models/mmr/content-types.ts:34
Ƭ ScalarResponse<RowType
>: SimpleEntity
| Table
<RowType
> & Partial
<WithSourceReferences
> | MixedResponse
| CommentaryResponse
| TabLayoutModificationResponse
| XtermResponse
| RandomErrorResponse1
| RandomErrorResponse2
This type covers all responses with no complex internal structure that views may wish to interpret into fancier views.
Name | Type |
---|---|
RowType |
extends Row = Row |
packages/core/src/models/entity.ts:213
Ƭ SnapshottedEvent<E
>: Omit
<E
, "tab"
> & { tab
: E
["tab"
]["uuid"
] }
In order to snapshot an event, we'll need to remember just the tab uuid
Name | Type |
---|---|
E |
extends CommandStartEvent | CommandCompleteEvent |
packages/core/src/repl/events.ts:68
Ƭ Stream: (response
: Streamable
) => void
| Promise
<void
>
▸ (response
): void
| Promise
<void
>
Name | Type |
---|---|
response |
Streamable |
void
| Promise
<void
>
packages/core/src/models/streamable.ts:22
Ƭ Streamable: ScalarResponse
packages/core/src/models/streamable.ts:19
Ƭ StringContent<ContentType
>: ScalarContent
<string
> & WithOptionalContentType
<ContentType
> & Partial
<Editable
>
Special case of ScalarContent
for strings; string content may
optionally provide a contentType
.
Name | Type |
---|---|
ContentType |
SupportedStringContent |
packages/core/src/models/mmr/content-types.ts:95
Ƭ StringDiffContent<ContentType
>: Object
Compare 2 StringContent
Name | Type |
---|---|
ContentType |
SupportedStringContent |
Name | Type |
---|---|
content |
Object |
content.a |
string |
content.b |
string |
contentType |
ContentType |
packages/core/src/models/mmr/content-types.ts:114
Ƭ SupportedStringContent: "yaml"
| "text/markdown"
| "text/html"
| "json"
| "shell"
| "text/plain"
Supported String content types
packages/core/src/models/mmr/content-types.ts:69
Ƭ Suspendable: Omit
<FlowControllable
, "write"
>
packages/core/src/core/jobs/job.ts:35
Ƭ TabLayoutModificationResponse<Request
>: Object
If your controller wants to manipulate the tab layout, this is your response type!
Name | Type |
---|---|
Request |
extends ModificationRequest = ModificationRequest |
Name | Type |
---|---|
apiVersion |
"kui-shell/v1" |
kind |
"TabLayoutModificationResponse" |
spec |
Request & { ok : MarkdownResponse } |
packages/core/src/models/TabLayoutModificationResponse.ts:24
Ƭ ToolbarProps: Object
Name | Type |
---|---|
willUpdateToolbar? |
(toolbarText : ToolbarText , extraButtons? : Button <ResourceWithMetadata <void >>[], extraButtonsOverride? : boolean ) => void |
packages/core/src/models/mmr/content-types.ts:39
Ƭ ViewTransformer<T
, O
>: (args
: Arguments
<O
>, response
: T
) => Promise
<T
> | void
| Promise
<void
>
Name | Type |
---|---|
T |
extends KResponse |
O |
extends ParsedOptions |
▸ (args
, response
): Promise
<T
> | void
| Promise
<void
>
Name | Type |
---|---|
args |
Arguments <O > |
response |
T |
Promise
<T
> | void
| Promise
<void
>
packages/core/src/models/command.ts:48
• Store: () => LocalStorage
▸ (): LocalStorage
This shim allows clients to define a localStorage scheme, if they cannot provide window.localStorage.
LocalStorage
• SymbolTable: SymbolTable
• boot: (client
: ClientRender
) => Promise
<void
>
▸ (client
): Promise
<void
>
Usage: clients will invoke this with their main renderer.
For reference, the HTML template is to be found in ../../../templates/index.ejs. This template is in turn managed by packages/webpack/webpack.config.js.
Name | Type |
---|---|
client |
ClientRender |
Promise
<void
>
• encodeComponent: (component
: string
| number
| boolean
, quote
: string
) => string
▸ (component
, quote?
): string
Add quotes if the argument needs it; compare to encodeURIComponent
Name | Type | Default value |
---|---|---|
component |
string | number | boolean |
undefined |
quote |
string |
'"' |
string
• i18n: (plugin
: string
, namespace
: string
) => (key
: string
, ...parameters
: (string
| number
)[]) => string
▸ (plugin
, namespace?
): (key
: string
, ...parameters
: (string
| number
)[]) => string
Name | Type | Default value |
---|---|---|
plugin |
string |
undefined |
namespace |
string |
'resources' |
fn
▸ (key
, ...parameters
): string
Name | Type |
---|---|
key |
string |
...parameters |
(string | number )[] |
string
• KeyCodes: Object
Name | Type |
---|---|
A |
number |
B |
number |
BACKSPACE |
number |
C |
number |
D |
number |
DOWN |
number |
E |
number |
END |
number |
ENTER |
number |
ESCAPE |
number |
F |
number |
HOME |
number |
K |
number |
L |
number |
LEFT_ARROW |
number |
N |
number |
P |
number |
PAGEDOWN |
number |
PAGEUP |
number |
R |
number |
RIGHT_ARROW |
number |
T |
number |
TAB |
number |
U |
number |
UP |
number |
packages/core/src/webapp/keys.ts:17
• badgeRegistrar: BadgeRegistration
<ResourceWithMetadata
>[] = []
registered badge handlers
packages/core/src/webapp/views/registrar/badges.ts:48
• commandsTrie: TrieSearch
<string
>
packages/core/src/commands/typeahead.ts:21
▸ History(tab
): HistoryModel
Name | Type |
---|---|
tab |
string | Tab |
▸ Const
_split(str
, removeOuterQuotes?
, returnIndices?
, removeInlineOuterQuotes?
, splitBy?
, startIdx?
, endIdx?
): string
[] | Split
Name | Type | Default value |
---|---|---|
str |
string |
undefined |
removeOuterQuotes |
boolean |
true |
returnIndices |
boolean |
false |
removeInlineOuterQuotes |
boolean |
false |
splitBy |
string |
' ' |
startIdx |
number |
0 |
endIdx |
number |
str.length |
string
[] | Split
packages/core/src/repl/split.ts:61
▸ addRelevantModes<Resource
>(tab
, modes
, command
, resource
): void
Apply all registered modes that are relevant to the given resource to the given modes model
Name | Type |
---|---|
Resource |
extends ResourceWithMetadata <void , Resource > |
Name | Type |
---|---|
tab |
Tab |
modes |
Mode <ResourceWithMetadata <void >>[] |
command |
string |
resource |
Object |
resource.resource |
Resource |
void
packages/core/src/webapp/views/registrar/modes.ts:66
▸ bootIntoSandbox(): Promise
<void
>
For booting into an external browser sandbox, such as codesandbox.io
Promise
<void
>
packages/core/src/webapp/bootstrap/boot.ts:103
▸ cellShouldHaveBadge(cell
): void
| CellShould
Should the cell be rendered with a traffic light badge?
Name | Type |
---|---|
cell |
RadioTableCell |
void
| CellShould
packages/core/src/models/RadioTable.ts:63
▸ Const
commandsOfferedByPlugin(plugin?
): Promise
<Table
<Row
>>
Render the commands provided by a given plugin
Name | Type |
---|---|
plugin? |
string |
packages/core/src/api/plugins.ts:46
▸ Const
disableInputQueueing(tab
): string
Name | Type |
---|---|
tab |
Tab |
string
packages/core/src/webapp/queueing.ts:60
▸ doCancel(tab
, block
, valueTypedSoFar
): void
Name | Type |
---|---|
tab |
Tab |
block |
Block |
valueTypedSoFar |
string |
void
packages/core/src/webapp/cancel.ts:33
▸ Const
doEval(_tab
, block
, command
, execUUID?
): Promise
<KResponse
<any
> | CodedError
<number
>>
User hit enter in the REPL
Name | Type | Description |
---|---|---|
_tab |
Tab |
- |
block |
Block |
- |
command |
string |
- |
execUUID? |
string |
for command re-execution |
Promise
<KResponse
<any
> | CodedError
<number
>>
packages/core/src/repl/exec.ts:609
▸ Const
empty(node
): void
Clean out the given DOM node
Name | Type |
---|---|
node |
Node |
void
packages/core/src/webapp/util/dom.ts:21
▸ executeSequentially(): boolean
boolean
packages/core/src/api/client.ts:78
▸ findCompletions(tab
, commandLine
, spec
): Promise
<CompletionResponse
[]>
Consult each registered enumerator to see what it has to offer in the way of completions. Pick the one with highest priority, or the first to register in the case of a tie-breaker.
Name | Type |
---|---|
tab |
Object |
tab.REPL |
REPL |
commandLine |
Omit <CommandLine <ParsedOptions >, "pipeStages" | "pipeStagesNoOptions" > |
spec |
TabCompletionSpec |
Promise
<CompletionResponse
[]>
packages/core/src/repl/tab-completion.ts:70
▸ Const
getCurrentTab(): Tab
packages/core/src/webapp/tab.ts:90
▸ getPrimaryTabId(tab
): string
Name | Type |
---|---|
tab |
Pick <Tab , "uuid" > |
string
packages/core/src/webapp/tab.ts:78
▸ Const
getTab(idx
): Tab
Name | Type |
---|---|
idx |
number | Tab |
packages/core/src/webapp/tab.ts:100
▸ getTabId(tab
): string
Return the unique identifier for the given tab
Name | Type |
---|---|
tab |
Pick <Tab , "uuid" > |
string
packages/core/src/webapp/tab.ts:64
▸ hasContent<T
>(resource
): resource is Content<T>
Name | Type |
---|---|
T |
extends ResourceWithMetadata <void , T > |
Name | Type |
---|---|
resource |
ScalarResource | Content <T > | Mode <T > |
resource is Content<T>
packages/core/src/models/mmr/content-types.ts:204
▸ hasDisplayName(resource
): resource is WithDisplayName
Name | Type |
---|---|
resource |
ResourceWithMetadata <void > |
resource is WithDisplayName
packages/core/src/models/entity.ts:99
▸ hasSourceReferences(response
): response is Required<WithSourceReferences>
Name | Type |
---|---|
response |
Partial <WithSourceReferences > |
response is Required<WithSourceReferences>
packages/core/src/models/entity.ts:243
▸ hideReplayOutput(): boolean
boolean
packages/core/src/api/client.ts:68
▸ i18nFromMap(map
): string
Name | Type |
---|---|
map |
Record <string , string > |
string
packages/core/src/util/i18n.ts:30
▸ initializeSession(tab
): Promise
<void
>
Initialize the session for the given Tab
. Await the response if
you need to block until all session initializers have completed.
Name | Type |
---|---|
tab |
Tab |
Promise
<void
>
packages/core/src/session/init.ts:28
▸ Const
internalBeCarefulExec(commandUntrimmed
, execOptions?
): Promise
<KResponse
<any
> | CodedError
<number
>>
Name | Type |
---|---|
commandUntrimmed |
string |
execOptions |
ExecOptions |
Promise
<KResponse
<any
> | CodedError
<number
>>
packages/core/src/repl/exec.ts:599
▸ Const
internalBeCarefulPExec<T
>(command
, execOptions?
): Promise
<T
>
Programmatic exec, as opposed to human typing and hitting enter
Name | Type |
---|---|
T |
extends KResponse <any > |
Name | Type |
---|---|
command |
string |
execOptions? |
ExecOptions |
Promise
<T
>
packages/core/src/repl/exec.ts:695
▸ is404<Code
>(err
): err is CodedError<404>
Name | Type |
---|---|
Code |
number |
Name | Type |
---|---|
err |
string | object | Error |
err is CodedError<404>
packages/core/src/models/errors.ts:33
▸ is404or409<Code
>(err
): err is CodedError<404 | 409>
Name | Type |
---|---|
Code |
number |
Name | Type |
---|---|
err |
string | object | Error |
err is CodedError<404 | 409>
packages/core/src/models/errors.ts:43
▸ is409<Code
>(err
): err is CodedError<409>
Name | Type |
---|---|
Code |
number |
Name | Type |
---|---|
err |
string | object | Error |
err is CodedError<409>
packages/core/src/models/errors.ts:38
▸ isAbortableResponse(entity
): entity is AbortableResponse<ScalarResponse<Row>>
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
entity is AbortableResponse<ScalarResponse<Row>>
packages/core/src/models/entity.ts:251
▸ isButton<T
>(mode
): mode is Button<T>
Name | Type |
---|---|
T |
extends ResourceWithMetadata <void , T > = ResourceWithMetadata <void > |
Name | Type |
---|---|
mode |
Button <T > | Content <T > | MultiModalMode <T > |
mode is Button<T>
packages/core/src/models/mmr/types.ts:144
▸ isCodedError<Code
>(err
): err is CodedError<Code>
Name | Type |
---|---|
Code |
number |
Name | Type |
---|---|
err |
string | object | Error |
err is CodedError<Code>
packages/core/src/models/errors.ts:28
▸ isCommandHandlerWithEvents<T
, O
>(evaluator
): evaluator is CommandHandlerWithEvents<T, O>
Name | Type |
---|---|
T |
extends KResponse <any > |
O |
extends ParsedOptions |
Name | Type |
---|---|
evaluator |
Evaluator <T , O > |
evaluator is CommandHandlerWithEvents<T, O>
packages/core/src/models/command.ts:282
▸ isCommandStringContent<T
>(content
): content is CommandStringContent
Name | Type |
---|---|
T |
extends ResourceWithMetadata <void , T > |
Name | Type |
---|---|
content |
ResourceWithMetadata <void > | ScalarResource | Content <T > | Mode <T > |
content is CommandStringContent
packages/core/src/models/mmr/content-types.ts:177
▸ isCommentaryResponse(entity
): entity is CommentaryResponse
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
entity is CommentaryResponse
packages/core/src/models/CommentaryResponse.ts:64
▸ isCommentarySectionBreak(entity
): boolean
is this commentary reponse be able to treated as a section break
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
boolean
packages/core/src/models/CommentaryResponse.ts:70
▸ Const
isCursorMovement(evt
): boolean
does the given keycode correspond to a cursor movement?
Name | Type |
---|---|
evt |
KeyboardEvent |
boolean
packages/core/src/webapp/keys.ts:48
▸ isDescriptionList(content
): content is DescriptionList
Name | Type |
---|---|
content |
ScalarResource |
content is DescriptionList
packages/core/src/models/DescriptionList.ts:43
▸ isError(response
): response is ErrorLike
Name | Type |
---|---|
response |
KResponse <any > |
response is ErrorLike
packages/core/src/repl/error.ts:27
▸ isExecutableClient(): boolean
Is the current client running in an executable mode?
boolean
packages/core/src/api/client.ts:53
▸ isFunctionContent<T
>(content
): content is FunctionContent<T>
Name | Type |
---|---|
T |
extends ResourceWithMetadata <void , T > = ResourceWithMetadata <void > |
Name | Type |
---|---|
content |
Entity <void , Row , ResourceWithMetadata <void >> | Content <T > | Mode <T > |
content is FunctionContent<T>
packages/core/src/models/mmr/content-types.ts:160
▸ isLink(link
): link is Link
Name | Type |
---|---|
link |
Link |
link is Link
packages/core/src/models/NavResponse.ts:54
▸ isLinkWithCommand(link
): link is Label & Command
Name | Type |
---|---|
link |
Link |
link is Label & Command
packages/core/src/models/NavResponse.ts:46
▸ isLinkWithHref(link
): link is Label & Href
Name | Type |
---|---|
link |
Link |
link is Label & Href
packages/core/src/models/NavResponse.ts:50
▸ isMarkdownResponse(entity
): entity is MarkdownResponse
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
entity is MarkdownResponse
packages/core/src/models/entity.ts:134
▸ isMessageWithCode(msg
): msg is MessageWithCode
Name | Type |
---|---|
msg |
UsageLike |
msg is MessageWithCode
packages/core/src/core/usage-error.ts:877
▸ isMessageWithUsageModel(msg
): msg is MessageWithUsageModel
Name | Type |
---|---|
msg |
UsageLike |
msg is MessageWithUsageModel
packages/core/src/core/usage-error.ts:133
▸ isMixedResponse(response
): response is MixedResponse
Name | Type |
---|---|
response |
Entity <void , Row , ResourceWithMetadata <void >> |
response is MixedResponse
packages/core/src/models/entity.ts:160
▸ isMultiModalResponse(entity
): entity is MultiModalResponse<ResourceWithMetadata<void>>
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
entity is MultiModalResponse<ResourceWithMetadata<void>>
packages/core/src/models/mmr/is.ts:20
▸ isNavResponse(entity
): entity is NavResponse
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
entity is NavResponse
packages/core/src/models/NavResponse.ts:58
▸ isNewSplitRequest(req
): req is TabLayoutModificationResponse<NewSplitRequest>
Name | Type |
---|---|
req |
TabLayoutModificationResponse <NewSplitRequest > |
req is TabLayoutModificationResponse<NewSplitRequest>
packages/core/src/models/TabLayoutModificationResponse.ts:60
▸ isOfflineClient(): boolean
Is the current client running in offline/disconnected mode?
boolean
packages/core/src/api/client.ts:21
▸ Const
isPopup(): boolean
are we operating in popup mode?
boolean
packages/core/src/webapp/popup-core.ts:18
▸ isRadioTable(response
): response is RadioTable
Name | Type |
---|---|
response |
KResponse <any > |
response is RadioTable
packages/core/src/models/RadioTable.ts:100
▸ isRandomErrorResponse1(response
): response is RandomErrorResponse1
Name | Type |
---|---|
response |
Entity <void , Row , ResourceWithMetadata <void >> |
response is RandomErrorResponse1
packages/core/src/models/entity.ts:197
▸ isRandomErrorResponse2(response
): response is RandomErrorResponse2
Name | Type |
---|---|
response |
Entity <void , Row , ResourceWithMetadata <void >> |
response is RandomErrorResponse2
packages/core/src/models/entity.ts:203
▸ isReactProvider(entity
): entity is ReactProvider
Name | Type |
---|---|
entity |
ScalarLike <ResourceWithMetadata <void >> |
entity is ReactProvider
packages/core/src/models/mmr/content-types.ts:43
▸ isReactResponse(entity
): entity is ReactResponse
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
entity is ReactResponse
packages/core/src/models/entity.ts:141
▸ isReadOnlyClient(): boolean
Is the current client running in readonly mode?
boolean
packages/core/src/api/client.ts:37
▸ isResizable(job
): job is Resizable
Name | Type |
---|---|
job |
Partial <Resizable > |
job is Resizable
packages/core/src/core/jobs/job.ts:25
▸ isResourceByReference<T
>(spec
): spec is T
Name | Type |
---|---|
T |
extends ResourceByReference <void , T > |
Name | Type |
---|---|
spec |
Entity <void , Row , ResourceWithMetadata <void >> | T | ResourceWithMetadataWithContent <any > |
spec is T
packages/core/src/models/entity.ts:112
▸ isResourceWithMetadata(spec
): spec is ResourceWithMetadata<void>
Name | Type |
---|---|
spec |
Entity <void , Row , ResourceWithMetadata <void >> |
spec is ResourceWithMetadata<void>
packages/core/src/models/entity.ts:88
▸ isScalarContent<T
>(entity
): entity is ScalarContent<ScalarResource>
Name | Type |
---|---|
T |
extends ResourceWithMetadata <void , T > |
Name | Type |
---|---|
entity |
ScalarLike <T > |
entity is ScalarContent<ScalarResource>
packages/core/src/models/mmr/content-types.ts:56
▸ isScalarResponse(response
): response is ScalarResponse<Row>
Name | Type |
---|---|
response |
Entity <void , Row , ResourceWithMetadata <void >> |
response is ScalarResponse<Row>
packages/core/src/models/entity.ts:223
▸ isStringDiffContent<T
>(entity
): entity is StringDiffContent<SupportedStringContent>
Name | Type |
---|---|
T |
extends ResourceWithMetadata <void , T > |
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> | Content <T > | Mode <T > |
entity is StringDiffContent<SupportedStringContent>
packages/core/src/models/mmr/content-types.ts:122
▸ isStringResponse(response
): response is string
Name | Type |
---|---|
response |
CompletionResponse |
response is string
packages/core/src/repl/tab-completion.ts:39
▸ isStringWithOptionalContentType<T
>(entity
): entity is StringContent<SupportedStringContent>
Name | Type |
---|---|
T |
extends ResourceWithMetadata <void , T > |
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> | Content <T > | Mode <T > |
entity is StringContent<SupportedStringContent>
packages/core/src/models/mmr/content-types.ts:99
▸ isSupportedContentType(contentType
): boolean
Name | Type |
---|---|
contentType |
string |
boolean
packages/core/src/models/mmr/content-types.ts:71
▸ isSupportedToolbarTextType(type
): type is ToolbarTextType
Name | Type |
---|---|
type |
string |
type is ToolbarTextType
packages/core/src/webapp/views/toolbar-text.ts:24
▸ isSuspendable(watch
): () => void
Name | Type |
---|---|
watch |
Partial <Suspendable > |
fn
▸ (): void
void
packages/core/src/core/jobs/job.ts:40
▸ isTabLayoutModificationResponse(entity
): entity is TabLayoutModificationResponse<NewSplitRequest>
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
entity is TabLayoutModificationResponse<NewSplitRequest>
packages/core/src/models/TabLayoutModificationResponse.ts:66
▸ isTable<C
>(model
): model is Table<Row>
Name |
---|
C |
Name | Type |
---|---|
model |
Entity <void , Row , ResourceWithMetadata <void >> | ResourceWithMetadata <C > |
model is Table<Row>
packages/core/src/webapp/models/table.ts:234
▸ isTableWithCount(table
): boolean
Name | Type |
---|---|
table |
Table <Row > |
boolean
packages/core/src/webapp/models/table.ts:225
▸ isTableWithTimestamp(table
): boolean
Name | Type |
---|---|
table |
Table <Row > |
boolean
packages/core/src/webapp/models/table.ts:221
▸ isTopLevelTab(tab
): boolean
Name | Type |
---|---|
tab |
Pick <Tab , "uuid" > |
boolean
packages/core/src/webapp/tab.ts:82
▸ isUsageError(error
): error is UsageErrorLike
Name | Type |
---|---|
error |
Entity <void , Row , ResourceWithMetadata <void >> | UsageErrorLike |
error is UsageErrorLike
packages/core/src/core/usage-error.ts:935
▸ isViewButton<T
>(button
): button is ViewButton<T>
Name | Type |
---|---|
T |
ResourceWithMetadata <void > |
Name | Type |
---|---|
button |
Button <T > |
button is ViewButton<T>
packages/core/src/models/mmr/types.ts:138
▸ isWatchable(model
): model is string & Watchable & number & Watchable & false & Watchable & true & Watchable & HTMLElement & Watchable & Error & Watchable & MarkdownResponse & Watchable & ReactResponse & Watchable & MixedResponse & Watchable & CommentaryResponse & Watchable & TabLayoutModificationResponse<NewSplitRequest> & Watchable & XtermResponse & Watchable & RandomErrorResponse1 & Watchable & RandomErrorResponse2 & Watchable & Table<Row> & Partial<WithSourceReferences> & Watchable & Abortable & Object & Watchable & ResourceWithMetadata<void> & Watchable & ResourceWithMetadata<void> & View<ResourceWithMetadata<void>> & Watchable & NavResponse & Watchable & RadioTable & Watchable & UsageModel & Watchable & RawResponse<void> & Watchable & ResourceWithMetadata<void>[] & Watchable
Name | Type |
---|---|
model |
string & Partial <Watchable > & number & Partial <Watchable > & false & Partial <Watchable > & true & Partial <Watchable > & HTMLElement & Partial <Watchable > & Error & Partial <Watchable > & MarkdownResponse & Partial <Watchable > & ReactResponse & Partial <Watchable > & MixedResponse & Partial <Watchable > & CommentaryResponse & Partial <Watchable > & TabLayoutModificationResponse <NewSplitRequest > & Partial <Watchable > & XtermResponse & Partial <Watchable > & RandomErrorResponse1 & Partial <Watchable > & RandomErrorResponse2 & Partial <Watchable > & Table <Row > & Partial <WithSourceReferences > & Partial <Watchable > & Abortable & { response : ScalarResponse <Row > } & Partial <Watchable > & ResourceWithMetadata <void > & Partial <Watchable > & ResourceWithMetadata <void > & View <ResourceWithMetadata <void >> & Partial <Watchable > & NavResponse & Partial <Watchable > & RadioTable & Partial <Watchable > & UsageModel & Partial <Watchable > & RawResponse <void > & Partial <Watchable > & ResourceWithMetadata <void >[] & Partial <Watchable > |
model is string & Watchable & number & Watchable & false & Watchable & true & Watchable & HTMLElement & Watchable & Error & Watchable & MarkdownResponse & Watchable & ReactResponse & Watchable & MixedResponse & Watchable & CommentaryResponse & Watchable & TabLayoutModificationResponse<NewSplitRequest> & Watchable & XtermResponse & Watchable & RandomErrorResponse1 & Watchable & RandomErrorResponse2 & Watchable & Table<Row> & Partial<WithSourceReferences> & Watchable & Abortable & Object & Watchable & ResourceWithMetadata<void> & Watchable & ResourceWithMetadata<void> & View<ResourceWithMetadata<void>> & Watchable & NavResponse & Watchable & RadioTable & Watchable & UsageModel & Watchable & RawResponse<void> & Watchable & ResourceWithMetadata<void>[] & Watchable
packages/core/src/core/jobs/watchable.ts:88
▸ isXtermErrorResponse(entity
): boolean
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
boolean
packages/core/src/models/XtermResponse.ts:38
▸ isXtermResponse(entity
): entity is XtermResponse
Name | Type |
---|---|
entity |
Entity <void , Row , ResourceWithMetadata <void >> |
entity is XtermResponse
packages/core/src/models/XtermResponse.ts:33
▸ maybeKuiLink(link
): string
Name | Type |
---|---|
link |
string |
string
packages/core/src/models/CommentaryResponse.ts:74
▸ offQuit(handler
): void
Name | Type |
---|---|
handler |
() => void |
void
packages/core/src/api/window-events.ts:47
▸ onQuit(handler
): void
Name | Type |
---|---|
handler |
() => void |
void
packages/core/src/api/window-events.ts:39
▸ pexecInCurrentTab(command
, topLevelTab?
, isInternalCallpath?
, incognito?
, execUUID?
): Promise
<KResponse
<any
>>
Execute the given command in the current (or given) tab.
Name | Type | Default value | Description |
---|---|---|---|
command |
string |
undefined |
- |
topLevelTab? |
Tab |
undefined |
- |
isInternalCallpath |
boolean |
false |
- |
incognito |
boolean |
false |
Execute the command quietly but do not display the result in the Terminal |
execUUID? |
string |
undefined |
- |
Promise
<KResponse
<any
>>
packages/core/src/webapp/tab.ts:137
▸ Const
pluginUserHome(): Promise
<string
>
Home for user-installed plugins
Promise
<string
>
packages/core/src/api/plugins.ts:55
▸ radioTableAddHint(row
, cidx
, newHints
): void
Add the hint to the given RadioTableCell
Name | Type |
---|---|
row |
RadioTableRow |
cidx |
number |
newHints |
CellShould [] |
void
packages/core/src/models/RadioTable.ts:68
▸ radioTableCellToString(cell
, useTitle?
): string
Project the string value of the given cell
Name | Type | Default value |
---|---|---|
cell |
RadioTableCell |
undefined |
useTitle |
boolean |
false |
string
packages/core/src/models/RadioTable.ts:58
▸ radioTableHintsAsCss(cell
): string
Name | Type |
---|---|
cell |
RadioTableCell |
string
packages/core/src/models/RadioTable.ts:47
▸ registerBadge<Resource
>(registration
): void
Register a new badge
Name | Type |
---|---|
Resource |
extends ResourceWithMetadata <void , Resource > |
Name | Type |
---|---|
registration |
BadgeRegistration <Resource > |
void
packages/core/src/webapp/views/registrar/badges.ts:54
▸ registerMode<Resource
>(registration
): void
Register a new mode
Name | Type |
---|---|
Resource |
extends ResourceWithMetadata <void , Resource > |
Name | Type |
---|---|
registration |
ModeRegistration <Resource > |
void
packages/core/src/webapp/views/registrar/modes.ts:50
▸ Const
registerModeWhen<Resource
>(when
): (mode
: ModeDeclaration
<Resource
>) => void
Name | Type |
---|---|
Resource |
extends ResourceWithMetadata <void , Resource > |
Name | Type |
---|---|
when |
ModeFilter <Resource > |
fn
▸ (mode
): void
Name | Type |
---|---|
mode |
ModeDeclaration <Resource > |
void
packages/core/src/webapp/views/registrar/modes.ts:55
▸ registerTabCompletionEnumerator(enumerator
, priority?
): void
A plugin has offered a tab completion Enumerator
Name | Type | Default value |
---|---|---|
enumerator |
Enumerator |
undefined |
priority |
number |
0 |
void
packages/core/src/repl/tab-completion.ts:60
▸ registerTabState(registration
): void
Name | Type |
---|---|
registration |
TabStateRegistration |
void
packages/core/src/models/tab-state.ts:38
▸ renderUsage(_
): string
Name | Type |
---|---|
_ |
PrettyUsageModel |
string
packages/core/src/core/usage/render-usage.ts:20
▸ sameRow(A
, B
): boolean
Are the two Rows the same?
Name | Type |
---|---|
A |
Row |
B |
Row |
boolean
packages/core/src/webapp/models/table.ts:242
▸ Const
sameTab(tab1
, tab2
): boolean
Name | Type |
---|---|
tab1 |
Tab |
tab2 |
Tab |
boolean
packages/core/src/webapp/tab.ts:86
▸ Const
setEvaluatorImpl(impl
): void
Name | Type |
---|---|
impl |
ReplEval |
void
packages/core/src/repl/exec.ts:76
▸ Const
split(str
, removeOuterQuotes?
, removeInlineOuterQuotes?
, splitBy?
, startIdx?
, endIdx?
): string
[]
Name | Type | Default value |
---|---|---|
str |
string |
undefined |
removeOuterQuotes |
boolean |
true |
removeInlineOuterQuotes |
boolean |
false |
splitBy? |
string |
undefined |
startIdx |
number |
0 |
endIdx |
number |
str.length |
string
[]
packages/core/src/repl/split.ts:197
▸ splitFor(topLevelTab
): Tab
We need to find the instance of the Split that has a REPL controller
- if given a
topLevelTab
that is already a Split, then we're "good to go" - if we are given an actual top-level tab (i.e. not a split), then we need to find the first Split child of that given tab
- if we aren't given a tab as input, then we search from
document
Name | Type |
---|---|
topLevelTab |
Tab |
packages/core/src/webapp/tab.ts:117
▸ splitIntoPipeStages(command
): CommandLine
["pipeStages"
]
Split a given command
line into the stages of the pipeline
e.g. if command=a -- b c|d > e
, then
pipeStages={ prefix: 'a', stages: [['b','c'],'d'], redirect: 'e' }
Name | Type |
---|---|
command |
string |
CommandLine
["pipeStages"
]
packages/core/src/repl/pipe-stages.ts:27
▸ teeToFile(response
): Promise
<void
>
Name | Type |
---|---|
response |
Entity <void , Row , ResourceWithMetadata <void >> |
Promise
<void
>
packages/core/src/util/tee.ts:21
▸ Const
tellMain(message
, channel?
): Promise
<unknown
>
Send a synchronous message to the main process
Name | Type |
---|---|
message |
string | Record <string , any > |
channel? |
"asynchronous-message" | "synchronous-message" |
Promise
<unknown
>
packages/core/src/webapp/electron-events.ts:64
▸ typeahead(prefix
): string
[]
Typeahead find lookup
Name | Type |
---|---|
prefix |
string |
string
[]
list of matches
packages/core/src/commands/typeahead.ts:100
▸ Const
unparse(options
): string
Turn an options struct into a cli string
Name | Type | Description |
---|---|---|
options |
ParsedOptions |
is the command line options struct given by the user. |
string
packages/core/src/core/utility.ts:26
▸ withLanguage(execOptions
): LanguageBearing
Name | Type |
---|---|
execOptions |
ExecOptions |
LanguageBearing