@xmoon76/dsh-pi-tui 0.5.4 → 0.5.6

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 (50) hide show
  1. package/README.en.md +46 -42
  2. package/README.md +46 -27
  3. package/cordis.patch.yml +77 -7
  4. package/dist/bootstrap-DQ4YPL-7.mjs +113583 -0
  5. package/dist/builtins.mjs +3 -9
  6. package/dist/{runtime-vc4mdr-R.mjs → client-bootstrap-Cr1JCaF5.mjs} +3670 -2277
  7. package/dist/disposal-BYBbEpVY.mjs +54 -0
  8. package/dist/dist-CIsR7cz4.mjs +15717 -0
  9. package/dist/{entry-control-DvSrndWd.mjs → entry-control-DnduyDiw.mjs} +12 -31
  10. package/dist/{extensions-CcuMY4n2.mjs → extensions-Bp0L37lP.mjs} +1239 -271
  11. package/dist/extensions.mjs +1 -1
  12. package/dist/host-bootstrap-DilsvA6f.mjs +281 -0
  13. package/dist/host-foundation-probe--5jtvHVe.mjs +413 -0
  14. package/dist/host-runtime.d.mts +30 -0
  15. package/dist/host-runtime.mjs +1317 -0
  16. package/dist/index.d.mts +19 -18
  17. package/dist/index.mjs +18410 -8836
  18. package/dist/local-client.mjs +2027 -187
  19. package/dist/local-discovery-C9VMjc0K.mjs +759 -0
  20. package/dist/local-discovery-CDaQHA_R.mjs +2 -0
  21. package/dist/local-host.mjs +1088 -87
  22. package/dist/local-transport-BVwFYq_Y.mjs +513 -0
  23. package/dist/{context-summary-DAisTA_7.mjs → pasted-path-range-CMnxuGPx.mjs} +7613 -216
  24. package/dist/pasted-path-range-r6qzV_tC.mjs +17510 -0
  25. package/dist/performance-host.d.mts +2 -2
  26. package/dist/performance-host.mjs +258 -1
  27. package/dist/pi-tui-remote-contribution-B0EQsP0N.mjs +85 -0
  28. package/dist/pi-tui-terminal-progress-contract-CdBH9j78.mjs +70 -0
  29. package/dist/pi-tui-terminal-progress-contract-MLXZ-i3t.mjs +905 -0
  30. package/dist/pi-tui-web-access-contract-BN8Cc_Ho.mjs +118 -0
  31. package/dist/{runtime-status-0lp9CM0V.mjs → runtime-status-Cj1nFOdS.mjs} +72 -214
  32. package/dist/session-BKGXyh80.mjs +15794 -0
  33. package/dist/{session-tdJHLnJR.mjs → session-CPt_U8_f.mjs} +10707 -3657
  34. package/dist/{startup-JaVZoTIl.mjs → startup-7BYWuvBU.mjs} +124 -8
  35. package/dist/startup.d.mts +1 -1
  36. package/dist/startup.mjs +1 -1
  37. package/dist/{client-bootstrap-F5DHFI9t.mjs → terminal-progress-source-DrqQhtT8.mjs} +3653 -2969
  38. package/dist/visual-tools.d.mts +2 -2
  39. package/dist/visual-tools.mjs +26 -31
  40. package/dist/web-preferences.d.mts +29 -0
  41. package/dist/web-preferences.mjs +15 -0
  42. package/dist/web-roster-CjqnUXNk.mjs +285 -0
  43. package/generated/dsh-presets/cordis.patch.yml +5 -3
  44. package/generated/dsh-presets/ptc.patch.yml +7 -7
  45. package/generated/dsh-presets/standard.patch.yml +6 -4
  46. package/package.json +195 -172
  47. package/dist/host-bootstrap-DAgKknbY.mjs +0 -119
  48. package/dist/performance-host-CcDJjjVA.mjs +0 -266
  49. package/dist/rolldown-runtime-8H4AJuhK.mjs +0 -14
  50. package/dist/terminal-progress-source-xor3vakJ.mjs +0 -2256
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import { H as TuiAction } from "./public-types-Dgf1bDke.mjs";
2
2
  import { SessionId } from "@deepseek-ai/dsh-session";
3
3
  import { ContentBlock } from "@deepseek-ai/dsh-llm";
4
4
  import { Context, Volatile } from "@deepseek-ai/cordis";
5
- import { Agent, ModelSelectionRef } from "@deepseek-ai/dsh-agent";
5
+ import { Agent } from "@deepseek-ai/dsh-agent";
6
6
  import z from "@deepseek-ai/schemastery";
7
7
  //#region src/domain/communication/policy.d.ts
8
8
  type ProgressUpdates = 'off' | 'milestones' | 'frequent';
@@ -439,6 +439,12 @@ interface ImageAttachmentRefLike {
439
439
  readonly width: number;
440
440
  readonly height: number;
441
441
  readonly name?: string;
442
+ /** Input dimensions after EXIF orientation and before normalization
443
+ * scaling; present only when normalization reduced the image. */
444
+ readonly originalDimensions?: {
445
+ readonly width: number;
446
+ readonly height: number;
447
+ };
442
448
  }
443
449
  //#endregion
444
450
  //#region src/client/media/image/types.d.ts
@@ -703,10 +709,17 @@ declare function resolveSubmitDelivery(parsed: {
703
709
  //#endregion
704
710
  //#region src/app/session/interrupt.d.ts
705
711
  /**
706
- * The live-turn interrupt helper (web Stop parity): abort the current
712
+ * The public live-turn interrupt helper (web Stop parity): abort the current
707
713
  * turn/tool run while PRESERVING the pending queue. Kept out of the
708
714
  * composition root so the rule is testable headless, and its structural
709
715
  * faces keep the internal runtime port module out of the published entry.
716
+ *
717
+ * This is the PUBLIC, session-id-addressed writer convenience. The TUI's own
718
+ * Busy Esc / extension `cancel-activity` path does NOT use it: that path goes
719
+ * through `SessionRuntime.interrupt`, which addresses the EXACT captured owner
720
+ * generation under the session control admission (so a navigation transition
721
+ * that froze the ordinary writers cannot refuse it, and a same-id owner
722
+ * rollover cannot receive the wrong generation's cancel).
710
723
  * @module @xmoon76/dsh-pi-tui/app/session/interrupt
711
724
  */
712
725
  /** Public settlement shape for the interrupt helper. Kept local so the
@@ -965,16 +978,6 @@ interface AgentComposition {
965
978
  /** Agent-factory setup: model selection, then the preset mount when composed. */
966
979
  setup: (agentCtx: Context, agent: Agent) => Promise<void> | void;
967
980
  }
968
- /**
969
- * Source-compatible composition returned for standalone callers that provide
970
- * their own ModelSelectionRef instead of an Agent-local installer.
971
- */
972
- interface LegacyAgentComposition {
973
- /** Preset id for the session header, absent when the deployment composes no roster. */
974
- agentPreset?: string;
975
- /** Standalone setup installs the caller-owned model selection ref. */
976
- setup: (agentCtx: Context) => Promise<void> | void;
977
- }
978
981
  /**
979
982
  * Resolve the preset an agent will be composed from, and the setup that
980
983
  * installs it.
@@ -988,11 +991,10 @@ interface LegacyAgentComposition {
988
991
  * A deployment with no roster composes nothing and every session shares the
989
992
  * host composition, which is the behavior before presets existed.
990
993
  * @param ctx - the runner context (services read through `ctx.get`).
991
- * @param installSelection - installs a fresh Agent-local model selection ref
992
- * during setup using the explicit Agent identity supplied by DSH. A
993
- * ModelSelectionRef is also accepted for source compatibility with
994
- * standalone composition callers; that branch installs the caller-owned ref
995
- * and does not require an Agent.
994
+ * @param installSelection - installs the Agent-scoped runtime contributions
995
+ * during setup using the explicit Agent identity supplied by DSH. DSH 0.2.2
996
+ * owns model selection inside the Agent (`AgentModel` + the `modelSelection`
997
+ * projection), so there is no caller-owned selection ref to install.
996
998
  * @param presetId - the requested preset, or `undefined` for the default.
997
999
  * @param displayState - the shared canonical DisplayState. When provided, the
998
1000
  * setup also installs the dynamic Focus system-prompt
@@ -1008,7 +1010,6 @@ interface LegacyAgentComposition {
1008
1010
  * @returns the id to record on the header (absent without a roster) and the setup callback.
1009
1011
  * @throws when the roster supplies no such preset.
1010
1012
  */
1011
- declare function composeAgent(ctx: Context, installSelection: ModelSelectionRef, presetId?: string, displayState?: DisplayState, diag?: Diag, progressUpdatesState?: ProgressUpdatesState, responseStyleState?: ResponseStyleState): Promise<LegacyAgentComposition>;
1012
1013
  declare function composeAgent(ctx: Context, installSelection: (agentCtx: Context, agent: Agent) => void, presetId?: string, displayState?: DisplayState, diag?: Diag, progressUpdatesState?: ProgressUpdatesState, responseStyleState?: ResponseStyleState): Promise<AgentComposition>;
1013
1014
  /**
1014
1015
  * The preset a persisted session actually runs, read from the DSH 0.1.6 V3