@linxiraos/pi-natives 1.1.20 → 1.1.23

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/README.md CHANGED
@@ -40,6 +40,14 @@ const files = await find({
40
40
  const sequence = encodeSixel(pngBytes, widthPx, heightPx);
41
41
  ```
42
42
 
43
+ ### Lazy Windows path helpers
44
+
45
+ Import `expandWindowsLongPath` and `getWindowsShortPath` from
46
+ `@linxiraos/pi-natives/path` when importing a module must not load the native addon.
47
+ The addon loads only when a helper is called on Windows; other platforms preserve
48
+ the input path without loading it. These helpers change long/8.3 spellings without
49
+ resolving symlinks or junctions.
50
+
43
51
  ## Building
44
52
 
45
53
  ```bash
@@ -78,8 +78,8 @@ below.
78
78
  uutils coreutils (https://github.com/uutils/coreutils), MIT
79
79
  --------------------------------------------------------------------------------
80
80
  Covers: base32, base64, basename, cat, cksum (shared checksum machinery),
81
- b2sum, md5sum, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, comm, cut,
82
- date, dirname, head, hostname, ln, ls, mkdir, mktemp, mv, nproc, paste,
81
+ b2sum, md5sum, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, comm, cp,
82
+ cut, date, dirname, head, hostname, ln, ls, mkdir, mktemp, mv, nproc, paste,
83
83
  printenv, readlink, realpath, rm, seq, sort, stat, tac, tail, tee, touch, tr,
84
84
  truncate, uname, uniq, wc, whoami, yes.
85
85
 
@@ -293,7 +293,7 @@ MIT License
293
293
  Copyright (c) 2026 Sander Land
294
294
  (measured tokenizer vocabulary data, reconstruction model, and reference
295
295
  implementation: https://github.com/sanderland/ctok)
296
- Copyright (c) 2026 Can Bölük and the Oh My Pi contributors
296
+ Copyright (c) 2026 Can Bölük and the omp contributors
297
297
  Copyright (c) 2026 Stencil Labs, Inc.
298
298
  (Rust implementation and the compact binary vocabulary encoding in
299
299
  crates/pi-natives/src/utok/claude)
@@ -335,43 +335,6 @@ This license allows the work and adaptations of it to be shared and used
335
335
  commercially, as long as it is attributed to Poppy Works. The font is bundled
336
336
  here (crates/pi-natives/src/fonts/Silver.ttf) as a CJK/Unicode bitmap fallback.
337
337
 
338
- -------------------------------------------------------------------------------
339
- packages/utils/src/vendor/mermaid-ascii/NOTICE
340
-
341
- This directory contains an in-house Mermaid-diagram-to-ASCII renderer adapted
342
- from beautiful-mermaid (https://github.com/lukilabs/beautiful-mermaid), used
343
- under the MIT License.
344
-
345
- Copyright (c) 2026 Craft Docs
346
-
347
- Only the ASCII rendering pipeline is ported (flowchart/state, sequence, class,
348
- ER, and xychart diagrams); the SVG renderer and its `elkjs` graph-layout
349
- dependency, the browser entry point, and the SVG theme/style modules were
350
- dropped. Terminal display width is reimplemented on `Bun.stringWidth`, and
351
- inline label formatting (HTML tags, markdown emphasis) is reduced to plain text
352
- for ASCII output. Layout and edge-routing logic is preserved faithfully so
353
- ASCII output matches the upstream package.
354
-
355
- MIT License
356
-
357
- Permission is hereby granted, free of charge, to any person obtaining a copy
358
- of this software and associated documentation files (the "Software"), to deal
359
- in the Software without restriction, including without limitation the rights
360
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
361
- copies of the Software, and to permit persons to whom the Software is
362
- furnished to do so, subject to the following conditions:
363
-
364
- The above copyright notice and this permission notice shall be included in all
365
- copies or substantial portions of the Software.
366
-
367
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
368
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
369
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
370
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
371
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
372
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
373
- SOFTWARE.
374
-
375
338
  -------------------------------------------------------------------------------
376
339
  packages/coding-agent/src/markit/NOTICE
377
340
 
@@ -2,7 +2,7 @@ interface AdaptedDesktopCapabilities {
2
2
  readonly [key: string]: unknown;
3
3
  readonly ax: boolean;
4
4
  readonly backgroundWindowInput: boolean;
5
- readonly deliveryModes: readonly string[];
5
+ readonly takeover: boolean;
6
6
  readonly axPermission: string;
7
7
  }
8
8
 
@@ -14,10 +14,10 @@ interface AdaptedDesktopSession {
14
14
  target: string,
15
15
  x: number,
16
16
  y: number,
17
- options?: { button?: string; count?: number; modifiers?: string[]; deliveryMode?: string },
17
+ options?: { button?: string; count?: number; modifiers?: string[]; takeover?: boolean },
18
18
  ): Promise<void>;
19
- typeText(target: string, text: string, options?: { deliveryMode?: string }): Promise<void>;
20
- keyChord(target: string, keys: string[], options?: { deliveryMode?: string }): Promise<void>;
19
+ typeText(target: string, text: string, options?: { takeover?: boolean }): Promise<void>;
20
+ keyChord(target: string, keys: string[], options?: { takeover?: boolean }): Promise<void>;
21
21
  close(): Promise<void>;
22
22
  }
23
23
 
@@ -33,7 +33,7 @@ function normalizeCapabilities(capabilities) {
33
33
  ...capabilities,
34
34
  ax: false,
35
35
  backgroundWindowInput: false,
36
- deliveryModes: ["foreground"],
36
+ takeover: true,
37
37
  axPermission: "unavailable",
38
38
  };
39
39
  }
@@ -211,7 +211,7 @@ export function adaptDesktopSession(NativeDesktopSession) {
211
211
  }
212
212
 
213
213
  #ensureForeground(target, options) {
214
- if (options?.deliveryMode !== "foreground" && (target !== "desktop" || options?.deliveryMode !== undefined)) {
214
+ if (target !== "desktop" && options?.takeover !== true) {
215
215
  throw desktopError(
216
216
  "BackgroundUnavailable",
217
217
  "the installed native addon supports foreground input only",