@yukino.js/yukino 0.0.13-dev → 0.0.13

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.
Files changed (38) hide show
  1. package/README.md +9 -7
  2. package/dist/{a2a-DG2JNM3U.js → a2a-DKWMWGID.js} +2 -2
  3. package/dist/{acp-DCZDS6FQ.js → acp-RL6DKS3R.js} +1 -1
  4. package/dist/{anthropic-5BTWVZVT.js → anthropic-74ALYMH2.js} +1 -1
  5. package/dist/{chunk-SZXXASVH.js → chunk-556TRLPT.js} +1 -1
  6. package/dist/{chunk-IWMCIYOG.js → chunk-6FSIG63T.js} +25 -25
  7. package/dist/{chunk-5DK2M7VI.js → chunk-6JUOKMSJ.js} +1 -1
  8. package/dist/{chunk-COHBT6M7.js → chunk-A5G5NTDB.js} +88 -88
  9. package/dist/{chunk-4CLD7LEU.js → chunk-A7CJPQC5.js} +1 -1
  10. package/dist/{chunk-AZQD75PX.js → chunk-APJAUOF6.js} +1 -1
  11. package/dist/{chunk-BDLFNDC4.js → chunk-CJSMVCUF.js} +1 -1
  12. package/dist/{chunk-OI2W6R6H.js → chunk-HWCLMDQF.js} +8 -8
  13. package/dist/chunk-NEU4ER5V.js +4 -0
  14. package/dist/{chunk-5URXBVET.js → chunk-OREDGNI6.js} +1 -1
  15. package/dist/chunk-SCR7NDDL.js +63 -0
  16. package/dist/lib/{anthropic-AVZIC22O.js → anthropic-EQRUGP2C.js} +4 -4
  17. package/dist/lib/{chunk-XH7D5FLE.js → chunk-CDMR25FD.js} +3 -3
  18. package/dist/lib/{chunk-O2H6VKKR.js → chunk-EGT7BJRD.js} +2 -2
  19. package/dist/lib/{chunk-LSI3T24Q.js → chunk-FUJDUZTH.js} +1 -1
  20. package/dist/lib/{chunk-GVI5R2DA.js → chunk-HUTUNNDX.js} +1 -1
  21. package/dist/lib/{chunk-EGJKLA2W.js → chunk-JYCSWXCR.js} +2 -2
  22. package/dist/lib/{chunk-QJ32WYQY.js → chunk-UBVKYJFI.js} +124 -27
  23. package/dist/lib/{chunk-TUNZLQLO.js → chunk-WWCSFKMR.js} +1 -1
  24. package/dist/lib/index.d.ts +49 -24
  25. package/dist/lib/index.js +186 -91
  26. package/dist/lib/{openai-54IQOU6Y.js → openai-B3I5WBFT.js} +3 -3
  27. package/dist/lib/{providers-MOCB6Y5L.js → providers-EJ4VBHNP.js} +2 -2
  28. package/dist/lib/{tool-filter-5Z6UTRRR.js → tool-filter-TURPCYFR.js} +3 -3
  29. package/dist/{main-IA22XMQR.js → main-JEEKFCGX.js} +226 -216
  30. package/dist/main.js +11 -2
  31. package/dist/{openai-I2TTMBWK.js → openai-7C6BVQ7M.js} +1 -1
  32. package/dist/{providers-DXQRJUIY.js → providers-U23PWAHG.js} +1 -1
  33. package/dist/{server-QS7CX37F.js → server-EOSEQPNY.js} +1 -1
  34. package/dist/tool-filter-UDSHRE5F.js +4 -0
  35. package/package.json +1 -1
  36. package/dist/chunk-CW5XFH7H.js +0 -59
  37. package/dist/chunk-UGX62ZSO.js +0 -4
  38. package/dist/tool-filter-KDQMXIDC.js +0 -4
package/README.md CHANGED
@@ -100,12 +100,13 @@ Update a global npm, yarn, or pnpm installation with:
100
100
 
101
101
  ```bash
102
102
  yukino update
103
+ yukino update --tag=canary
103
104
  yukino --version
104
105
  ```
105
106
 
106
- The command checks npm's `latest` release and installs that exact version using the package manager that provides the current installation. Both one-line installers use npm, so their installations support `yukino update` too. Source checkouts must be updated from the repository.
107
+ The command checks npm's `latest` dist-tag by default. Use `--tag=canary` (or `--tag canary`) to check another dist-tag. If its version is newer according to SemVer, the command installs that exact version using the package manager that provides the current installation. For example, `0.0.14-canary` is newer than `0.0.13-dev`. Equal or older versions are not installed. Both one-line installers use npm, so their installations support `yukino update` too. Source checkouts must be updated from the repository.
107
108
 
108
- The TUI checks for a newer release asynchronously and shows a `yukino update` hint when one is available. Network errors do not interrupt the UI. Set `YUKINO_SKIP_VERSION_CHECK=1` to disable automatic checks; explicit `yukino update` still checks for updates.
109
+ The TUI checks npm's `latest` dist-tag for a newer release asynchronously and shows a `yukino update` hint when one is available. Network errors do not interrupt the UI. Set `YUKINO_SKIP_VERSION_CHECK=1` to disable automatic checks; explicit `yukino update` still checks for updates.
109
110
 
110
111
  Or run directly from the monorepo:
111
112
 
@@ -489,10 +490,11 @@ The tool requests only read-only operations and rejects server-requested workspa
489
490
 
490
491
  Task tracking and task execution are separate:
491
492
 
492
- - `TaskCreate`, `TaskGet`, `TaskList`, and `TaskUpdate` share one interface: `subject`, `description`, `taskId`, `owner`, `activeForm`, `metadata`, `addBlocks`, and `addBlockedBy`. Without a team they operate on the leader's private list; with a team they operate on the shared board, including in coordinator mode. Ordinary subagents and forks always get independent private lists. Task creation does not launch work; assigning a shared task notifies its owner.
493
- - `TodoWrite` atomically replaces the private checklist, never the shared board. Without a team it operates on the same items as the private Task tools. Include every item to retain and reuse returned IDs to preserve metadata, ownership, priority, and links. An empty list clears it. New items omit `id`; titles use `subject`.
493
+ - Interactive terminal, Remote, and ACP sessions expose `TaskCreate`, `TaskGet`, `TaskList`, and `TaskUpdate`; non-interactive print (`-p`) and A2A sessions expose `TodoWrite`. These interfaces are mutually exclusive. Creating or restoring a team switches a non-interactive leader to shared Task tools; deleting the team restores its private TODO interface and list. Teammates always use shared Task tools. Ordinary subagents and forks inherit the parent's available interface with independent private lists.
494
+ - `TaskCreate`, `TaskGet`, `TaskList`, and `TaskUpdate` share one interface: `subject`, `description`, `taskId`, `owner`, `activeForm`, `metadata`, `addBlocks`, and `addBlockedBy`. Without a team they operate on the leader's private list; with a team they operate on the shared board, including in coordinator mode. Task creation does not launch work; assigning a shared task notifies its owner.
495
+ - `TodoWrite` atomically replaces the private checklist using the same task model, statuses, IDs, persistence, and dependency validation as the private Task tools. Include every item to retain and reuse returned IDs to preserve metadata, ownership, priority, and links. An empty list clears it; completing every item retains them. New items omit `id`; titles use `subject`. The result contains `todos` and a `progress` string. Task mutations and `TaskList` report the same `TODO completed/total` count; only completed items contribute to the numerator.
494
496
  - Statuses are `pending`, `in_progress`, `completed`, `blocked`, and `cancelled`; `TaskUpdate` also accepts `deleted`. Dependencies must already exist; forward references, self-dependencies, and cycles are rejected. Starting blocked work fails atomically. Only completed dependencies unblock work; cancelled dependencies remain unresolved until explicitly removed. Metadata updates merge keys; null removes a key. Shared task claim, ownership checks, dependency changes, and status updates run under one cross-process lock. Teammates automatically claim tasks when marking them in progress, cannot take another worker's task, and cannot start a second task while one is already in progress. The leader can explicitly reassign work; stop its old worker before reassignment if it is still executing.
495
- - Interactive/Remote/ACP private lists persist per session in `~/.yukino/sessions/artifacts/<session-id>/tasks.json`, with a stored next-ID counter so deleting or clearing items never reuses IDs on resume. Shared boards use project-scoped team storage. Corrupt or inconsistent stores fail explicitly, without migration, auto-repair, or stale-state fallback. Storage and tool schemas have changed; old task files are not supported. Print mode's private checklist lasts for that invocation. The terminal displays compact private TODO progress, including blocked and cancelled items. When every item is completed, the progress line hides after five seconds without deleting tasks or resetting IDs. Adding or reopening an unfinished item shows it again and cancels the pending hide.
497
+ - Interactive/Remote/ACP/A2A private lists persist per session in `~/.yukino/sessions/artifacts/<session-id>/tasks.json`, with a stored next-ID counter so deleting or clearing items never reuses IDs on resume. Shared boards use project-scoped team storage. Corrupt or inconsistent stores fail explicitly, without migration, auto-repair, or stale-state fallback. Storage and tool schemas have changed; old task files are not supported. Print mode's private checklist lasts for that invocation. The terminal's TODO progress follows the same private list or shared board as its Task tools, including teammate updates, blocked items, and cancelled items. When every item is completed, the progress line hides after five seconds without deleting tasks or resetting IDs. Adding or reopening an unfinished item shows it again and cancels the pending hide. Switching sessions or boards starts a fresh completion countdown.
496
498
  - `Agent` executes delegated work. Background Agent/Bash/PowerShell invocations return runtime task IDs, distinct from TODO IDs. `TaskOutput` inspects one of these IDs or waits once (`wait: true`, `timeout_ms: 0..60000`). It does not consume automatic completion notifications or stop a task on timeout. Prefer notifications over polling. `TaskStop` remains the explicit cancellation mechanism.
497
499
 
498
500
  The common built-in registry is used by terminal, print, Remote/ACP/A2A, and separate teammate hosts. Delegation, coordinator, and per-agent tool restrictions still filter that registry.
@@ -647,7 +649,7 @@ Use the mouse wheel or trackpad to scroll conversation history in the terminal's
647
649
 
648
650
  **Design tradeoff:** Yukino uses the terminal's primary screen, with fullscreen/alternate-screen rendering and mouse capture removed. Completed messages are appended to native scrollback, preserving normal selection, copying, pasting, and wheel/trackpad history scrolling without translating scrolling into prompt-history navigation. Yukino gives up its own conversation viewport, scrollbar, click-to-latest indicator, and conversation-navigation key bindings. Scrolling and whether new output follows the bottom are controlled by the terminal; the input and footer scroll out of view while reading older history. The live area remains responsive and shows the tail of running output; the complete assistant response is printed when it finishes. Ctrl+O reprints the current transcript with expanded/collapsed details, and resume/rewind prints the restored transcript; earlier printed lines remain terminal history. Scrollback retention, selection behavior, copy/paste shortcuts, and selection stability during live redraws depend on the terminal.
649
651
 
650
- Terminal resizing redraws the live area without clearing or replaying completed messages, preserving the terminal's native reading position and scrollback anchors. Historical output keeps its printed line breaks and uses the terminal's own reflow; previously printed cards are not rebuilt or stretched to fill a wider terminal. Background padding does not add extra wrapped rows when the terminal narrows. The input, status, live text, running tool cards, and newly completed messages use the current width. Resize redraws are coalesced, and the live area stays out of native width reflow so transient tool output and Working borders do not enter scrollback.
652
+ Terminal resizing redraws the live area without clearing or replaying completed messages, preserving the terminal's native reading position and scrollback anchors. Historical output keeps its printed line breaks and uses the terminal's own reflow; previously printed cards are not rebuilt or stretched to fill a wider terminal. Completed Markdown tables use labeled records (`Column: value`) so narrowing the terminal preserves their meaning without breaking grid borders. Streaming tables use a grid with wrapped cells, switching to labeled records when the columns cannot fit their widest characters. Background padding does not add extra wrapped rows when the terminal narrows. The input, status, live text, running tool cards, and newly completed messages use the current width. Resize redraws are coalesced. Apple Terminal's reflowed live rows and cleared gaps are tracked so repeated width and height changes restore the input and footer without leaving old status lines behind.
651
653
 
652
654
  Pastes longer than 10 lines or 1,000 characters collapse to `[paste #1 +124 lines]` or `[paste #1 1234 chars]`. Clipboard images appear as `[Image #1]`. Arrow keys move across each placeholder as a unit, and Backspace/Delete remove it as a unit. Placeholders survive dialog switches; submitting restores the full text and image attachments.
653
655
 
@@ -674,6 +676,6 @@ In a long-lived host process, prefer the composable modules (`Agent`, `ToolRegis
674
676
 
675
677
  `tests/helpers/virtual-terminal.ts` connects real Ink input/output streams to `@xterm/headless`. The Unicode 11 addon matches VS Code's default terminal width policy. Output bytes go directly to the emulator, and write callbacks complete after parsing; await `waitUntilRenderFlush()` for Ink renders or the fixture's `flush()` for direct writes before inspecting the buffer.
676
678
 
677
- Run `pnpm exec vitest run tests/ui-cursor.test.ts tests/ui-terminal-resize.test.ts tests/terminal-output.test.ts` to check terminal cells, CJK and emoji widths, combining characters, cursor placement, ANSI colors, fragmented UTF-8 output, native scrollback anchors, and resize redraws. These tests exercise the primary screen without mouse capture. The emulator does not validate font rendering, pixel appearance, native selection, or OS clipboard behavior; those still need testing in the target terminal. Unicode width policies, especially for complex emoji sequences, can differ between terminals.
679
+ Run `pnpm exec vitest run tests/ui-cursor.test.ts tests/ui-terminal-resize.test.ts tests/terminal-output.test.ts tests/ui-rendering.test.ts` to check terminal cells, CJK and emoji widths, combining characters, cursor placement, ANSI colors, fragmented UTF-8 output, native scrollback anchors, resize redraws, and table layouts. The Apple Terminal resize fixture preserves rows below the caret when shrinking height, matching its behavior rather than xterm's deletion of those rows. These tests exercise the primary screen without mouse capture. The emulator does not validate font rendering, pixel appearance, native selection, or OS clipboard behavior; those still need testing in the target terminal. Unicode width policies, especially for complex emoji sequences, can differ between terminals.
678
680
 
679
681
  Runtime text measurement stays on `string-width`, which already uses `get-east-asian-width` and handles ANSI stripping and grapheme clusters. The xterm packages are development dependencies.