@xmoon76/dsh-pi-tui 0.5.5 → 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 (48) hide show
  1. package/README.en.md +30 -47
  2. package/README.md +30 -30
  3. package/cordis.patch.yml +77 -7
  4. package/dist/{bootstrap-DLOydLLj.mjs → bootstrap-DQ4YPL-7.mjs} +12416 -7243
  5. package/dist/builtins.mjs +3 -8
  6. package/dist/{application-runtime-CbBO4bY-.mjs → client-bootstrap-Cr1JCaF5.mjs} +3098 -1747
  7. package/dist/{dist-C7QMk0ws.mjs → dist-CIsR7cz4.mjs} +510 -224
  8. package/dist/{extensions-pcFiH7Qe.mjs → extensions-Bp0L37lP.mjs} +527 -249
  9. package/dist/extensions.mjs +1 -1
  10. package/dist/{host-bootstrap-CKdfLkNS.mjs → host-bootstrap-DilsvA6f.mjs} +106 -13
  11. package/dist/host-foundation-probe--5jtvHVe.mjs +413 -0
  12. package/dist/host-runtime.d.mts +10 -6
  13. package/dist/host-runtime.mjs +877 -10
  14. package/dist/index.d.mts +11 -17
  15. package/dist/index.mjs +13328 -6828
  16. package/dist/local-client.mjs +408 -61
  17. package/dist/{local-discovery-CXnLT4GF.mjs → local-discovery-C9VMjc0K.mjs} +10 -6
  18. package/dist/{local-discovery-DVFFpfBG.mjs → local-discovery-CDaQHA_R.mjs} +1 -1
  19. package/dist/local-host.mjs +188 -36
  20. package/dist/{local-transport-C9aonplC.mjs → local-transport-BVwFYq_Y.mjs} +1 -1
  21. package/dist/{context-summary-D9mhxPXL.mjs → pasted-path-range-CMnxuGPx.mjs} +6166 -227
  22. package/dist/{context-summary-Bz0AGXa1.mjs → pasted-path-range-r6qzV_tC.mjs} +5927 -444
  23. package/dist/{pi-tui-remote-contribution-DRk6Tl3J.mjs → pi-tui-remote-contribution-B0EQsP0N.mjs} +27 -20
  24. package/dist/{pi-tui-terminal-progress-contract-XTQKj-WW.mjs → pi-tui-terminal-progress-contract-MLXZ-i3t.mjs} +2 -2
  25. package/dist/pi-tui-web-access-contract-BN8Cc_Ho.mjs +118 -0
  26. package/dist/{runtime-status-0lp9CM0V.mjs → runtime-status-Cj1nFOdS.mjs} +72 -214
  27. package/dist/{session-4keoXjk0.mjs → session-BKGXyh80.mjs} +7487 -2562
  28. package/dist/{session-B2zqv4wr.mjs → session-CPt_U8_f.mjs} +7486 -2560
  29. package/dist/{startup-Ct2UUjUL.mjs → startup-7BYWuvBU.mjs} +121 -6
  30. package/dist/startup.mjs +1 -1
  31. package/dist/{terminal-progress-source-BhufrZ74.mjs → terminal-progress-source-DrqQhtT8.mjs} +305 -45
  32. package/dist/visual-tools.d.mts +2 -2
  33. package/dist/visual-tools.mjs +26 -31
  34. package/dist/web-preferences.d.mts +29 -0
  35. package/dist/web-preferences.mjs +15 -0
  36. package/dist/web-roster-CjqnUXNk.mjs +285 -0
  37. package/generated/dsh-presets/cordis.patch.yml +5 -3
  38. package/generated/dsh-presets/ptc.patch.yml +7 -7
  39. package/generated/dsh-presets/standard.patch.yml +6 -4
  40. package/package.json +182 -168
  41. package/dist/client-bootstrap-DwSFzcTW.mjs +0 -872
  42. package/dist/custom-items-CKrOBCox.mjs +0 -655
  43. package/dist/dispose-cause-BzcXo4hu.mjs +0 -123
  44. package/dist/host-foundation-probe-CYHsbAw6.mjs +0 -143
  45. package/dist/host-prerequisites-9JBTtVNu.mjs +0 -36
  46. package/dist/runtime-Bh5OsftD.mjs +0 -6798
  47. package/dist/runtime-C5ROZqFj.mjs +0 -2
  48. package/dist/terminal-progress-source-CsBinCJ_.mjs +0 -965
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
@@ -972,16 +978,6 @@ interface AgentComposition {
972
978
  /** Agent-factory setup: model selection, then the preset mount when composed. */
973
979
  setup: (agentCtx: Context, agent: Agent) => Promise<void> | void;
974
980
  }
975
- /**
976
- * Source-compatible composition returned for standalone callers that provide
977
- * their own ModelSelectionRef instead of an Agent-local installer.
978
- */
979
- interface LegacyAgentComposition {
980
- /** Preset id for the session header, absent when the deployment composes no roster. */
981
- agentPreset?: string;
982
- /** Standalone setup installs the caller-owned model selection ref. */
983
- setup: (agentCtx: Context) => Promise<void> | void;
984
- }
985
981
  /**
986
982
  * Resolve the preset an agent will be composed from, and the setup that
987
983
  * installs it.
@@ -995,11 +991,10 @@ interface LegacyAgentComposition {
995
991
  * A deployment with no roster composes nothing and every session shares the
996
992
  * host composition, which is the behavior before presets existed.
997
993
  * @param ctx - the runner context (services read through `ctx.get`).
998
- * @param installSelection - installs a fresh Agent-local model selection ref
999
- * during setup using the explicit Agent identity supplied by DSH. A
1000
- * ModelSelectionRef is also accepted for source compatibility with
1001
- * standalone composition callers; that branch installs the caller-owned ref
1002
- * 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.
1003
998
  * @param presetId - the requested preset, or `undefined` for the default.
1004
999
  * @param displayState - the shared canonical DisplayState. When provided, the
1005
1000
  * setup also installs the dynamic Focus system-prompt
@@ -1015,7 +1010,6 @@ interface LegacyAgentComposition {
1015
1010
  * @returns the id to record on the header (absent without a roster) and the setup callback.
1016
1011
  * @throws when the roster supplies no such preset.
1017
1012
  */
1018
- declare function composeAgent(ctx: Context, installSelection: ModelSelectionRef, presetId?: string, displayState?: DisplayState, diag?: Diag, progressUpdatesState?: ProgressUpdatesState, responseStyleState?: ResponseStyleState): Promise<LegacyAgentComposition>;
1019
1013
  declare function composeAgent(ctx: Context, installSelection: (agentCtx: Context, agent: Agent) => void, presetId?: string, displayState?: DisplayState, diag?: Diag, progressUpdatesState?: ProgressUpdatesState, responseStyleState?: ResponseStyleState): Promise<AgentComposition>;
1020
1014
  /**
1021
1015
  * The preset a persisted session actually runs, read from the DSH 0.1.6 V3