@linxiraos/pi-utils 1.1.7 → 1.1.9
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/CHANGELOG.md +2 -8
- package/README.md +18 -18
- package/package.json +57 -63
- package/src/acp/connection.ts +6 -10
- package/src/ar/entries.ts +1 -1
- package/src/ar/sevenzip.ts +17 -2
- package/src/async.ts +25 -4
- package/src/browsers.ts +11 -5
- package/src/dirs.ts +15 -10
- package/src/dom/core.ts +4 -4
- package/src/env.ts +12 -0
- package/src/fetch-retry.ts +36 -1
- package/src/format.ts +1 -1
- package/src/frontmatter.ts +1 -0
- package/src/incoming-json.ts +856 -0
- package/src/index.ts +2 -0
- package/src/json-lexer.ts +413 -0
- package/src/json-parse.ts +93 -350
- package/src/marked/core.ts +8 -1
- package/src/materialize-string.ts +10 -0
- package/src/path.ts +14 -0
- package/src/postmortem.ts +33 -6
- package/src/prompt.ts +1 -0
- package/src/ring.ts +1 -0
- package/src/temp.ts +16 -4
- package/src/template.ts +2 -2
- package/src/tls-fetch.ts +2 -16
- package/src/turndown/html.ts +1 -1
- package/src/vterm/query-responder.ts +76 -0
- package/src/vterm.ts +1 -0
- package/THIRD-PARTY-NOTICES.txt +0 -22909
- package/dist/types/abortable.d.ts +0 -32
- package/dist/types/acp/connection.d.ts +0 -118
- package/dist/types/acp/protocol.d.ts +0 -526
- package/dist/types/acp/schema.d.ts +0 -41
- package/dist/types/acp/stream.d.ts +0 -8
- package/dist/types/acp/transport.d.ts +0 -88
- package/dist/types/acp.d.ts +0 -6
- package/dist/types/ar/arj.d.ts +0 -5
- package/dist/types/ar/asar.d.ts +0 -7
- package/dist/types/ar/bytes.d.ts +0 -20
- package/dist/types/ar/cab.d.ts +0 -5
- package/dist/types/ar/checksums.d.ts +0 -10
- package/dist/types/ar/codecs/bzip2.d.ts +0 -4
- package/dist/types/ar/codecs/gzip.d.ts +0 -6
- package/dist/types/ar/codecs/lzma.d.ts +0 -6
- package/dist/types/ar/codecs/lzw.d.ts +0 -4
- package/dist/types/ar/codecs/lzx.d.ts +0 -7
- package/dist/types/ar/codecs/xz.d.ts +0 -4
- package/dist/types/ar/codecs/zstd.d.ts +0 -6
- package/dist/types/ar/cpio.d.ts +0 -7
- package/dist/types/ar/deb.d.ts +0 -5
- package/dist/types/ar/entries.d.ts +0 -22
- package/dist/types/ar/error.d.ts +0 -8
- package/dist/types/ar/index.d.ts +0 -11
- package/dist/types/ar/iso.d.ts +0 -5
- package/dist/types/ar/limits.d.ts +0 -33
- package/dist/types/ar/lzh.d.ts +0 -7
- package/dist/types/ar/open.d.ts +0 -45
- package/dist/types/ar/paths.d.ts +0 -18
- package/dist/types/ar/rar/rar4-decoder.d.ts +0 -6
- package/dist/types/ar/rar/rar5-decoder.d.ts +0 -6
- package/dist/types/ar/rar.d.ts +0 -5
- package/dist/types/ar/reader.d.ts +0 -28
- package/dist/types/ar/registry.d.ts +0 -17
- package/dist/types/ar/rpm.d.ts +0 -5
- package/dist/types/ar/sevenzip/decode.d.ts +0 -33
- package/dist/types/ar/sevenzip.d.ts +0 -5
- package/dist/types/ar/source.d.ts +0 -54
- package/dist/types/ar/tar.d.ts +0 -9
- package/dist/types/ar/types.d.ts +0 -99
- package/dist/types/ar/unix-ar.d.ts +0 -7
- package/dist/types/ar/write.d.ts +0 -10
- package/dist/types/ar/zip.d.ts +0 -10
- package/dist/types/async.d.ts +0 -22
- package/dist/types/binary.d.ts +0 -23
- package/dist/types/browsers.d.ts +0 -68
- package/dist/types/chalk.d.ts +0 -125
- package/dist/types/cli.d.ts +0 -134
- package/dist/types/color.d.ts +0 -136
- package/dist/types/dates.d.ts +0 -7
- package/dist/types/dirs.d.ts +0 -325
- package/dist/types/docx/converter.d.ts +0 -46
- package/dist/types/docx/xml.d.ts +0 -26
- package/dist/types/docx.d.ts +0 -11
- package/dist/types/dom/core.d.ts +0 -431
- package/dist/types/dom/parser.d.ts +0 -7
- package/dist/types/dom/selector.d.ts +0 -5
- package/dist/types/dom.d.ts +0 -5
- package/dist/types/env.d.ts +0 -124
- package/dist/types/fetch-retry.d.ts +0 -96
- package/dist/types/file-lock.d.ts +0 -23
- package/dist/types/format.d.ts +0 -37
- package/dist/types/frontmatter.d.ts +0 -46
- package/dist/types/fs-error.d.ts +0 -31
- package/dist/types/glob.d.ts +0 -28
- package/dist/types/headers.d.ts +0 -34
- package/dist/types/index.d.ts +0 -41
- package/dist/types/json-parse.d.ts +0 -83
- package/dist/types/json.d.ts +0 -20
- package/dist/types/logger/rotating-file.d.ts +0 -18
- package/dist/types/logger.d.ts +0 -96
- package/dist/types/loop-phase.d.ts +0 -10
- package/dist/types/lru.d.ts +0 -46
- package/dist/types/marked/core.d.ts +0 -445
- package/dist/types/marked.d.ts +0 -2
- package/dist/types/math-delimiters.d.ts +0 -45
- package/dist/types/mermaid-ascii.d.ts +0 -11
- package/dist/types/mime.d.ts +0 -29
- package/dist/types/module-timer.d.ts +0 -1
- package/dist/types/path-tree.d.ts +0 -76
- package/dist/types/path.d.ts +0 -2
- package/dist/types/peek-file.d.ts +0 -29
- package/dist/types/postmortem.d.ts +0 -174
- package/dist/types/process-name.d.ts +0 -7
- package/dist/types/procmgr.d.ts +0 -74
- package/dist/types/prompt.d.ts +0 -18
- package/dist/types/ptree.d.ts +0 -124
- package/dist/types/readability/readability.d.ts +0 -9
- package/dist/types/readability/readerable.d.ts +0 -10
- package/dist/types/readability/types.d.ts +0 -70
- package/dist/types/readability.d.ts +0 -4
- package/dist/types/ring.d.ts +0 -93
- package/dist/types/runtime-install.d.ts +0 -85
- package/dist/types/sanitize-text.d.ts +0 -29
- package/dist/types/snowflake.d.ts +0 -25
- package/dist/types/sqlite.d.ts +0 -26
- package/dist/types/stderr-guard.d.ts +0 -22
- package/dist/types/stream.d.ts +0 -75
- package/dist/types/tab-spacing.d.ts +0 -24
- package/dist/types/temp.d.ts +0 -17
- package/dist/types/template.d.ts +0 -62
- package/dist/types/timing-buffer.d.ts +0 -22
- package/dist/types/tls-fetch.d.ts +0 -37
- package/dist/types/turndown/gfm.d.ts +0 -11
- package/dist/types/turndown/html.d.ts +0 -5
- package/dist/types/turndown/service.d.ts +0 -21
- package/dist/types/turndown/types.d.ts +0 -70
- package/dist/types/turndown.d.ts +0 -4
- package/dist/types/type-guards.d.ts +0 -5
- package/dist/types/vendor/mermaid-ascii/ascii/ansi.d.ts +0 -41
- package/dist/types/vendor/mermaid-ascii/ascii/canvas.d.ts +0 -89
- package/dist/types/vendor/mermaid-ascii/ascii/class-diagram.d.ts +0 -7
- package/dist/types/vendor/mermaid-ascii/ascii/converter.d.ts +0 -12
- package/dist/types/vendor/mermaid-ascii/ascii/draw.d.ts +0 -66
- package/dist/types/vendor/mermaid-ascii/ascii/edge-bundling.d.ts +0 -48
- package/dist/types/vendor/mermaid-ascii/ascii/edge-routing.d.ts +0 -43
- package/dist/types/vendor/mermaid-ascii/ascii/er-diagram.d.ts +0 -7
- package/dist/types/vendor/mermaid-ascii/ascii/grid.d.ts +0 -56
- package/dist/types/vendor/mermaid-ascii/ascii/index.d.ts +0 -65
- package/dist/types/vendor/mermaid-ascii/ascii/multiline-utils.d.ts +0 -27
- package/dist/types/vendor/mermaid-ascii/ascii/pathfinder.d.ts +0 -17
- package/dist/types/vendor/mermaid-ascii/ascii/sequence.d.ts +0 -7
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/circle.d.ts +0 -11
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/corners.d.ts +0 -34
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/diamond.d.ts +0 -11
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/hexagon.d.ts +0 -11
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/index.d.ts +0 -26
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/rectangle.d.ts +0 -31
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/rounded.d.ts +0 -11
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/special.d.ts +0 -59
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/stadium.d.ts +0 -17
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/state.d.ts +0 -30
- package/dist/types/vendor/mermaid-ascii/ascii/shapes/types.d.ts +0 -55
- package/dist/types/vendor/mermaid-ascii/ascii/types.d.ts +0 -206
- package/dist/types/vendor/mermaid-ascii/ascii/validate.d.ts +0 -51
- package/dist/types/vendor/mermaid-ascii/ascii/xychart.d.ts +0 -2
- package/dist/types/vendor/mermaid-ascii/class/parser.d.ts +0 -6
- package/dist/types/vendor/mermaid-ascii/class/types.d.ts +0 -102
- package/dist/types/vendor/mermaid-ascii/er/parser.d.ts +0 -6
- package/dist/types/vendor/mermaid-ascii/er/types.d.ts +0 -76
- package/dist/types/vendor/mermaid-ascii/index.d.ts +0 -1
- package/dist/types/vendor/mermaid-ascii/multiline-utils.d.ts +0 -9
- package/dist/types/vendor/mermaid-ascii/parser.d.ts +0 -7
- package/dist/types/vendor/mermaid-ascii/sequence/parser.d.ts +0 -6
- package/dist/types/vendor/mermaid-ascii/sequence/types.d.ts +0 -130
- package/dist/types/vendor/mermaid-ascii/text-metrics.d.ts +0 -23
- package/dist/types/vendor/mermaid-ascii/types.d.ts +0 -114
- package/dist/types/vendor/mermaid-ascii/xychart/colors.d.ts +0 -25
- package/dist/types/vendor/mermaid-ascii/xychart/parser.d.ts +0 -6
- package/dist/types/vendor/mermaid-ascii/xychart/types.d.ts +0 -145
- package/dist/types/version.d.ts +0 -18
- package/dist/types/vterm/buffer.d.ts +0 -99
- package/dist/types/vterm/terminal.d.ts +0 -44
- package/dist/types/vterm.d.ts +0 -8
- package/dist/types/which.d.ts +0 -37
- package/dist/types/worker-host.d.ts +0 -51
- package/dist/types/xml.d.ts +0 -31
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/** Prefix reserved for argv selectors dispatched by the shared CLI worker host. */
|
|
2
|
-
export declare const WORKER_HOST_SELECTOR_PREFIX = "__omp_worker_";
|
|
3
|
-
/** Whether an argv value selects a worker hosted by the shared CLI entrypoint. */
|
|
4
|
-
export declare function isWorkerHostSelector(value: string | undefined): value is string;
|
|
5
|
-
/** Called by CLI entrypoints whose main module dispatches worker argv selectors. */
|
|
6
|
-
export declare function declareWorkerHostEntry(): void;
|
|
7
|
-
/** Main-module path of the self-dispatching CLI host, or null outside it. */
|
|
8
|
-
export declare function workerHostEntry(): string | null;
|
|
9
|
-
/**
|
|
10
|
-
* Buffers messages a Bun worker thread receives before its real handler is
|
|
11
|
-
* attached, then hands them off once it is.
|
|
12
|
-
*
|
|
13
|
-
* Bun delivers messages the parent posted before the worker spawned exactly
|
|
14
|
-
* once — when the worker entry module's top-level evaluation completes — to the
|
|
15
|
-
* `message` listeners present at that moment. A worker whose handler attaches
|
|
16
|
-
* via a later `await import(...)` therefore misses that flush. The
|
|
17
|
-
* self-dispatching CLI host imports each worker module dynamically from inside
|
|
18
|
-
* its argv dispatch, so the worker's own `parentPort.on("message")` lands after
|
|
19
|
-
* the flush and the parent's synchronously-posted `init` handshake is dropped —
|
|
20
|
-
* every run then stalls until the init timeout fires and silently falls back to
|
|
21
|
-
* the inline worker (issue: eval cells always taking the full timeout).
|
|
22
|
-
*
|
|
23
|
-
* The host calls {@link installWorkerInbox} synchronously in the entry's sync
|
|
24
|
-
* prefix (before importing the worker module) so a `parentPort` listener exists
|
|
25
|
-
* at flush time; the worker module then {@link consumeWorkerInbox}es it and
|
|
26
|
-
* binds the real handler, replaying anything buffered. Re-dispatching through
|
|
27
|
-
* `parentPort.emit("message", …)` is not an option — Bun's port is an
|
|
28
|
-
* `EventTarget` whose `emit` throws — so the inbox calls the handler directly.
|
|
29
|
-
*/
|
|
30
|
-
export interface WorkerInbox {
|
|
31
|
-
/** Route buffered and subsequent messages to `handler`; returns an unbind fn. */
|
|
32
|
-
bind(handler: (message: unknown) => void): () => void;
|
|
33
|
-
}
|
|
34
|
-
/** Minimal `parentPort` surface the inbox needs (Node/Bun `MessagePort`). */
|
|
35
|
-
interface MessageListenerPort {
|
|
36
|
-
on(event: "message", listener: (value: unknown) => void): unknown;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Attach a buffering `message` listener on `port` synchronously and stash the
|
|
40
|
-
* resulting inbox for the worker module to {@link consumeWorkerInbox}. MUST be
|
|
41
|
-
* called in the entry module's synchronous prefix — before the worker module is
|
|
42
|
-
* imported — so the listener exists when Bun flushes pre-spawn messages.
|
|
43
|
-
*/
|
|
44
|
-
export declare function installWorkerInbox(port: MessageListenerPort): WorkerInbox;
|
|
45
|
-
/**
|
|
46
|
-
* Take the inbox installed by {@link installWorkerInbox} for this worker, or
|
|
47
|
-
* `null` when the worker module was loaded directly (no host pre-buffering, so
|
|
48
|
-
* the module's own synchronous top-level listener already wins the flush).
|
|
49
|
-
*/
|
|
50
|
-
export declare function consumeWorkerInbox(): WorkerInbox | null;
|
|
51
|
-
export {};
|
package/dist/types/xml.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** Behavior-compatible reimplementation of fast-xml-parser's used surface. */
|
|
2
|
-
/** Context supplied to an array-selection callback. */
|
|
3
|
-
export type XMLArraySelector = (tagName: string, jPath: string, isLeafNode: boolean, isAttribute: boolean | null) => boolean;
|
|
4
|
-
/** Options supported by {@link XMLParser}. */
|
|
5
|
-
export interface XMLParserOptions {
|
|
6
|
-
/** Omits attributes when true (default). */
|
|
7
|
-
ignoreAttributes?: boolean;
|
|
8
|
-
/** Prefix applied to attribute property names. */
|
|
9
|
-
attributeNamePrefix?: string;
|
|
10
|
-
/** Property used for text alongside children or attributes. */
|
|
11
|
-
textNodeName?: string;
|
|
12
|
-
/** Trims ordinary text and attribute values. */
|
|
13
|
-
trimValues?: boolean;
|
|
14
|
-
/** Coerces numeric and boolean element text. */
|
|
15
|
-
parseTagValue?: boolean;
|
|
16
|
-
/** Coerces numeric and boolean attribute values. */
|
|
17
|
-
parseAttributeValue?: boolean;
|
|
18
|
-
/** Controls entity processing and its expansion ceiling. */
|
|
19
|
-
processEntities?: boolean | {
|
|
20
|
-
maxTotalExpansions?: number;
|
|
21
|
-
};
|
|
22
|
-
/** Selects element or attribute properties that must always be arrays. */
|
|
23
|
-
isArray?: XMLArraySelector;
|
|
24
|
-
}
|
|
25
|
-
/** Parses XML into the object shape used by the document converters. */
|
|
26
|
-
export declare class XMLParser {
|
|
27
|
-
#private;
|
|
28
|
-
constructor(options?: XMLParserOptions);
|
|
29
|
-
/** Parses one XML document. */
|
|
30
|
-
parse(xml: string): unknown;
|
|
31
|
-
}
|