mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-23 23:18:13 +02:00
Jauge de contexte, espace disque sur partage agrégé, panneau Fichiers
Trois défauts sans rapport entre eux, tous visibles à l'écran. Jauge de contexte bloquée à « 0 / N (0 %) » : le comptage exact vient de usage.prompt_tokens (include_usage), qu'un llama-server récent a cessé de renvoyer. On note désormais si l'usage est arrivé ; sinon la fin de tour publie l'estimation qui pilote déjà la compaction — approximative, mais jamais absente. Et la souscription envoie la valeur courante juste après le rattrapage : une page rechargée affichait zéro sur une discussion pourtant pleine, faute d'événement ctx_used dans la fenêtre rejouée. Espace disque : « il ne reste que 11,9 Go » sur un partage Unraid qui en a des centaines. /mnt/user est servi par shfs, un FUSE qui agrège plusieurs disques — statfs y renvoie l'espace d'un seul, et ce chiffre REFUSAIT l'installation du modèle. Les systèmes de fichiers qui approximent (FUSE, overlay, NFS, CIFS, Ceph, Gluster) sont reconnus par leur magie : leur chiffre reste affiché, précédé d'un « ~ », mais ne bloque plus rien. Panneau Fichiers : le panneau entier défilait, emportant vers le haut l'en-tête, le fil d'Ariane et le pied (occupation disque, bouton .zip) dès qu'il y avait quelques fichiers. Seule la liste défile maintenant ; le pied reste en bas et l'état vide se centre. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
895ff92ed8
commit
b405adea6c
5118 files changed
+1264007
-23
No files matched your search
+344
@@ -0,0 +1,344 @@
|
||||
import type {Program} from 'estree-jsx'
|
||||
import type {Data as HastData, ElementContent, Parent as HastParent} from 'hast'
|
||||
import type {
|
||||
BlockContent,
|
||||
Data as MdastData,
|
||||
DefinitionContent,
|
||||
Parent as MdastParent,
|
||||
PhrasingContent
|
||||
} from 'mdast'
|
||||
import type {Data, Node} from 'unist'
|
||||
import type {Tag} from './lib/index.js'
|
||||
|
||||
// Expose JavaScript API.
|
||||
export {mdxJsxFromMarkdown, mdxJsxToMarkdown} from './lib/index.js'
|
||||
|
||||
// Expose options.
|
||||
export type {ToMarkdownOptions} from './lib/index.js'
|
||||
|
||||
// Expose node types.
|
||||
/**
|
||||
* MDX JSX attribute value set to an expression.
|
||||
*
|
||||
* ```markdown
|
||||
* > | <a b={c} />
|
||||
* ^^^
|
||||
* ```
|
||||
*/
|
||||
export interface MdxJsxAttributeValueExpression extends Node {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxJsxAttributeValueExpression'
|
||||
|
||||
/**
|
||||
* Value.
|
||||
*/
|
||||
value: string
|
||||
|
||||
/**
|
||||
* Data associated with the mdast MDX JSX attribute value expression.
|
||||
*/
|
||||
data?: MdxJsxAttributeValueExpressionData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with mdast MDX JSX attribute value expression nodes by the
|
||||
* ecosystem.
|
||||
*/
|
||||
export interface MdxJsxAttributeValueExpressionData extends Data {
|
||||
/**
|
||||
* Program node from estree.
|
||||
*/
|
||||
estree?: Program | null | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* MDX JSX attribute as an expression.
|
||||
*
|
||||
* ```markdown
|
||||
* > | <a {...b} />
|
||||
* ^^^^^^
|
||||
* ```
|
||||
*/
|
||||
export interface MdxJsxExpressionAttribute extends Node {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxJsxExpressionAttribute'
|
||||
|
||||
/**
|
||||
* Value.
|
||||
*/
|
||||
value: string
|
||||
|
||||
/**
|
||||
* Data associated with the mdast MDX JSX expression attributes.
|
||||
*/
|
||||
data?: MdxJsxExpressionAttributeData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with mdast MDX JSX expression attribute nodes by the
|
||||
* ecosystem.
|
||||
*/
|
||||
export interface MdxJsxExpressionAttributeData extends Data {
|
||||
/**
|
||||
* Program node from estree.
|
||||
*/
|
||||
estree?: Program | null | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* MDX JSX attribute with a key.
|
||||
*
|
||||
* ```markdown
|
||||
* > | <a b="c" />
|
||||
* ^^^^^
|
||||
* ```
|
||||
*/
|
||||
export interface MdxJsxAttribute extends Node {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxJsxAttribute'
|
||||
/**
|
||||
* Attribute name.
|
||||
*/
|
||||
name: string
|
||||
/**
|
||||
* Attribute value.
|
||||
*/
|
||||
value?: MdxJsxAttributeValueExpression | string | null | undefined
|
||||
/**
|
||||
* Data associated with the mdast MDX JSX attribute.
|
||||
*/
|
||||
data?: MdxJsxAttributeData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with mdast MDX JSX attribute nodes by the
|
||||
* ecosystem.
|
||||
*/
|
||||
export interface MdxJsxAttributeData extends Data {}
|
||||
|
||||
/**
|
||||
* MDX JSX element node, occurring in flow (block).
|
||||
*/
|
||||
export interface MdxJsxFlowElement extends MdastParent {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxJsxFlowElement'
|
||||
/**
|
||||
* MDX JSX element name (`null` for fragments).
|
||||
*/
|
||||
name: string | null
|
||||
/**
|
||||
* MDX JSX element attributes.
|
||||
*/
|
||||
attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>
|
||||
/**
|
||||
* Content.
|
||||
*/
|
||||
children: Array<BlockContent | DefinitionContent>
|
||||
/**
|
||||
* Data associated with the mdast MDX JSX elements (flow).
|
||||
*/
|
||||
data?: MdxJsxFlowElementData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with mdast MDX JSX element (flow) nodes by the
|
||||
* ecosystem.
|
||||
*/
|
||||
export interface MdxJsxFlowElementData extends MdastData {}
|
||||
|
||||
/**
|
||||
* MDX JSX element node, occurring in text (phrasing).
|
||||
*/
|
||||
export interface MdxJsxTextElement extends MdastParent {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxJsxTextElement'
|
||||
/**
|
||||
* MDX JSX element name (`null` for fragments).
|
||||
*/
|
||||
name: string | null
|
||||
/**
|
||||
* MDX JSX element attributes.
|
||||
*/
|
||||
attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>
|
||||
/**
|
||||
* Content.
|
||||
*/
|
||||
children: PhrasingContent[]
|
||||
/**
|
||||
* Data associated with the mdast MDX JSX elements (text).
|
||||
*/
|
||||
data?: MdxJsxTextElementData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with mdast MDX JSX element (text) nodes by the
|
||||
* ecosystem.
|
||||
*/
|
||||
export interface MdxJsxTextElementData extends MdastData {}
|
||||
|
||||
/**
|
||||
* MDX JSX element node, occurring in flow (block), for hast.
|
||||
*/
|
||||
export interface MdxJsxFlowElementHast extends HastParent {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxJsxFlowElement'
|
||||
/**
|
||||
* MDX JSX element name (`null` for fragments).
|
||||
*/
|
||||
name: string | null
|
||||
/**
|
||||
* MDX JSX element attributes.
|
||||
*/
|
||||
attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>
|
||||
/**
|
||||
* Content.
|
||||
*/
|
||||
children: ElementContent[]
|
||||
/**
|
||||
* Data associated with the hast MDX JSX elements (flow).
|
||||
*/
|
||||
data?: MdxJsxFlowElementHastData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with hast MDX JSX element (flow) nodes by the
|
||||
* ecosystem.
|
||||
*/
|
||||
export interface MdxJsxFlowElementHastData extends HastData {}
|
||||
|
||||
/**
|
||||
* MDX JSX element node, occurring in text (phrasing), for hast.
|
||||
*/
|
||||
export interface MdxJsxTextElementHast extends HastParent {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxJsxTextElement'
|
||||
/**
|
||||
* MDX JSX element name (`null` for fragments).
|
||||
*/
|
||||
name: string | null
|
||||
/**
|
||||
* MDX JSX element attributes.
|
||||
*/
|
||||
attributes: Array<MdxJsxAttribute | MdxJsxExpressionAttribute>
|
||||
/**
|
||||
* Content.
|
||||
*/
|
||||
children: ElementContent[]
|
||||
/**
|
||||
* Data associated with the hast MDX JSX elements (text).
|
||||
*/
|
||||
data?: MdxJsxTextElementHastData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with hast MDX JSX element (text) nodes by the
|
||||
* ecosystem.
|
||||
*/
|
||||
export interface MdxJsxTextElementHastData extends HastData {}
|
||||
|
||||
// Add nodes to mdast content.
|
||||
declare module 'mdast' {
|
||||
interface BlockContentMap {
|
||||
/**
|
||||
* MDX JSX element node, occurring in flow (block).
|
||||
*/
|
||||
mdxJsxFlowElement: MdxJsxFlowElement
|
||||
}
|
||||
|
||||
interface PhrasingContentMap {
|
||||
/**
|
||||
* MDX JSX element node, occurring in text (phrasing).
|
||||
*/
|
||||
mdxJsxTextElement: MdxJsxTextElement
|
||||
}
|
||||
|
||||
interface RootContentMap {
|
||||
/**
|
||||
* MDX JSX element node, occurring in flow (block).
|
||||
*/
|
||||
mdxJsxFlowElement: MdxJsxFlowElement
|
||||
/**
|
||||
* MDX JSX element node, occurring in text (phrasing).
|
||||
*/
|
||||
mdxJsxTextElement: MdxJsxTextElement
|
||||
}
|
||||
}
|
||||
|
||||
// Add nodes to hast content.
|
||||
declare module 'hast' {
|
||||
interface ElementContentMap {
|
||||
/**
|
||||
* MDX JSX element node, occurring in text (phrasing).
|
||||
*/
|
||||
mdxJsxTextElement: MdxJsxTextElementHast
|
||||
/**
|
||||
* MDX JSX element node, occurring in flow (block).
|
||||
*/
|
||||
mdxJsxFlowElement: MdxJsxFlowElementHast
|
||||
}
|
||||
|
||||
interface RootContentMap {
|
||||
/**
|
||||
* MDX JSX element node, occurring in text (phrasing).
|
||||
*/
|
||||
mdxJsxTextElement: MdxJsxTextElementHast
|
||||
/**
|
||||
* MDX JSX element node, occurring in flow (block).
|
||||
*/
|
||||
mdxJsxFlowElement: MdxJsxFlowElementHast
|
||||
}
|
||||
}
|
||||
|
||||
// Add custom data tracked to turn markdown into a tree.
|
||||
declare module 'mdast-util-from-markdown' {
|
||||
interface CompileData {
|
||||
/**
|
||||
* Current MDX JSX tag.
|
||||
*/
|
||||
mdxJsxTag?: Tag | undefined
|
||||
|
||||
/**
|
||||
* Current stack of open MDX JSX tags.
|
||||
*/
|
||||
mdxJsxTagStack?: Tag[] | undefined
|
||||
}
|
||||
}
|
||||
|
||||
// Add custom data tracked to turn a syntax tree into markdown.
|
||||
declare module 'mdast-util-to-markdown' {
|
||||
interface ConstructNameMap {
|
||||
/**
|
||||
* Whole JSX element, in flow.
|
||||
*
|
||||
* ```markdown
|
||||
* > | <a />
|
||||
* ^^^^^
|
||||
* ```
|
||||
*/
|
||||
mdxJsxFlowElement: 'mdxJsxFlowElement'
|
||||
|
||||
/**
|
||||
* Whole JSX element, in text.
|
||||
*
|
||||
* ```markdown
|
||||
* > | a <b />.
|
||||
* ^^^^^
|
||||
* ```
|
||||
*/
|
||||
mdxJsxTextElement: 'mdxJsxTextElement'
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user