@xmoon76/dsh-pi-tui 0.5.1 → 0.5.3

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 (31) hide show
  1. package/README.en.md +130 -17
  2. package/README.md +76 -16
  3. package/cordis.patch.yml +17 -49
  4. package/dist/builtins.mjs +3 -2
  5. package/dist/context-summary-CxUpNkA9.mjs +2951 -0
  6. package/dist/extension/advanced.d.mts +2 -2
  7. package/dist/extension/unstable.d.mts +1 -1
  8. package/dist/{extensions-v3Rf-qJA.d.mts → extensions-DzpBiiYb.d.mts} +1 -1
  9. package/dist/{extensions-1WYBUQ8I.mjs → extensions-a-rxanjw.mjs} +3514 -2892
  10. package/dist/extensions.d.mts +2 -2
  11. package/dist/extensions.mjs +1 -1
  12. package/dist/index.d.mts +13 -11
  13. package/dist/index.mjs +20158 -7768
  14. package/dist/performance-host-BJT6scGF.mjs +266 -0
  15. package/dist/performance-host.d.mts +36 -0
  16. package/dist/performance-host.mjs +2 -0
  17. package/dist/performance-view-jvvd8Jn7.mjs +476 -0
  18. package/dist/{public-types-BEjj7FEb.d.mts → public-types-gZi3iFNh.d.mts} +1 -1
  19. package/dist/rolldown-runtime-8H4AJuhK.mjs +14 -0
  20. package/dist/{runtime-CcQyhIvI.mjs → runtime-BtPH-UUb.mjs} +625 -261
  21. package/dist/session-BZLxhrPQ.mjs +5697 -0
  22. package/dist/{startup-CmTYVTGC.mjs → startup-D5Xu8diR.mjs} +22 -7
  23. package/dist/startup.d.mts +1 -2
  24. package/dist/startup.mjs +1 -1
  25. package/dist/tasks-D_z5Yjjr.mjs +267 -0
  26. package/dist/{terminal-progress-source-BfiTKDT-.mjs → terminal-progress-source-BlmksrSD.mjs} +116 -265
  27. package/generated/dsh-presets/cordis.patch.yml +8 -26
  28. package/generated/dsh-presets/minimal.patch.yml +17 -0
  29. package/generated/dsh-presets/ptc.patch.yml +8 -26
  30. package/generated/dsh-presets/standard.patch.yml +8 -26
  31. package/package.json +166 -146
@@ -1,3 +1,3 @@
1
- import { $ as TuiKeybindingContribution, A as PiTuiSlotSemantic, B as TextView, C as InputWidget, D as PiTuiApiInfo, E as NormalizedKey, F as SpacerView, G as TuiAutocompleteQuery, H as TuiAction, I as StackView, J as TuiColorPalette, K as TuiAutocompleteRegistryView, L as StyledSpan, M as RegistrationSpec, N as RowsView, O as PiTuiCapability, P as SessionSnapshot, Q as TuiCommandHandle, R as SurfaceSnapshot, S as HeaderBadge, T as MessagePresentationSnapshot, U as TuiAutocompleteItem, V as ToolPresentationSnapshot, W as TuiAutocompleteProvider, X as TuiCommandBridgeView, Y as TuiCommandBridgeSnapshot, Z as TuiCommandContribution, _t as TuiThemeRegistrySnapshot, a as ContributionHealth, at as TuiOverlayHandle, b as FooterSegment, bt as describeKey, c as DockItem, ct as TuiRendererRegistrySnapshot, d as EditorHost, dt as TuiSettingHandle, et as TuiKeybindingHandle, f as EditorHostAction, ft as TuiSettingsRegistrySnapshot, g as ExtensionEditor, gt as TuiThemeHandle, h as EditorSnapshot, ht as TuiThemeContribution, i as AutocompleteProviderContribution, it as TuiMessageRendererContribution, j as RegistrationHandle, k as PiTuiSlotName, l as EditorContribution, m as EditorInputEvent, mt as TuiSizeValue, n as ActivitySnapshot, nt as TuiKeybindingRegistryView, o as ContributionRecord, ot as TuiOverlayOptions, p as EditorHostActionResult, pt as TuiSettingsRegistryView, q as TuiAutocompleteSuggestions, r as AutocompleteHandle, rt as TuiLocalCommandHandler, s as ContributionState, st as TuiRendererHandle, t as API_VERSION, tt as TuiKeybindingRegistrySnapshot, u as EditorHandle, ut as TuiSettingContribution, v as ExtensionView, vt as TuiThemeRegistryView, w as MarkdownView, x as FrameView, y as FooterItemContribution, yt as TuiToolRendererContribution, z as SurfaceStateValues } from "./public-types-BEjj7FEb.mjs";
2
- import { a as PiTuiExtensionService, i as PI_TUI_EXTENSIONS_SERVICE, n as inject, r as name, t as apply } from "./extensions-v3Rf-qJA.mjs";
1
+ import { $ as TuiKeybindingContribution, A as PiTuiSlotSemantic, B as TextView, C as InputWidget, D as PiTuiApiInfo, E as NormalizedKey, F as SpacerView, G as TuiAutocompleteQuery, H as TuiAction, I as StackView, J as TuiColorPalette, K as TuiAutocompleteRegistryView, L as StyledSpan, M as RegistrationSpec, N as RowsView, O as PiTuiCapability, P as SessionSnapshot, Q as TuiCommandHandle, R as SurfaceSnapshot, S as HeaderBadge, T as MessagePresentationSnapshot, U as TuiAutocompleteItem, V as ToolPresentationSnapshot, W as TuiAutocompleteProvider, X as TuiCommandBridgeView, Y as TuiCommandBridgeSnapshot, Z as TuiCommandContribution, _t as TuiThemeRegistrySnapshot, a as ContributionHealth, at as TuiOverlayHandle, b as FooterSegment, bt as describeKey, c as DockItem, ct as TuiRendererRegistrySnapshot, d as EditorHost, dt as TuiSettingHandle, et as TuiKeybindingHandle, f as EditorHostAction, ft as TuiSettingsRegistrySnapshot, g as ExtensionEditor, gt as TuiThemeHandle, h as EditorSnapshot, ht as TuiThemeContribution, i as AutocompleteProviderContribution, it as TuiMessageRendererContribution, j as RegistrationHandle, k as PiTuiSlotName, l as EditorContribution, m as EditorInputEvent, mt as TuiSizeValue, n as ActivitySnapshot, nt as TuiKeybindingRegistryView, o as ContributionRecord, ot as TuiOverlayOptions, p as EditorHostActionResult, pt as TuiSettingsRegistryView, q as TuiAutocompleteSuggestions, r as AutocompleteHandle, rt as TuiLocalCommandHandler, s as ContributionState, st as TuiRendererHandle, t as API_VERSION, tt as TuiKeybindingRegistrySnapshot, u as EditorHandle, ut as TuiSettingContribution, v as ExtensionView, vt as TuiThemeRegistryView, w as MarkdownView, x as FrameView, y as FooterItemContribution, yt as TuiToolRendererContribution, z as SurfaceStateValues } from "./public-types-gZi3iFNh.mjs";
2
+ import { a as PiTuiExtensionService, i as PI_TUI_EXTENSIONS_SERVICE, n as inject, r as name, t as apply } from "./extensions-DzpBiiYb.mjs";
3
3
  export { API_VERSION, type ActivitySnapshot, type AutocompleteHandle, type AutocompleteProviderContribution, type ContributionHealth, type ContributionRecord, type ContributionState, type DockItem, type EditorContribution, type EditorHandle, type EditorHost, type EditorHostAction, type EditorHostActionResult, type EditorInputEvent, type EditorSnapshot, type ExtensionEditor, type ExtensionView, type FooterItemContribution, type FooterSegment, type FrameView, type HeaderBadge, type InputWidget, type MarkdownView, type MessagePresentationSnapshot, type NormalizedKey, PI_TUI_EXTENSIONS_SERVICE, type PiTuiApiInfo, type PiTuiCapability, type PiTuiExtensionService, type PiTuiSlotName, type PiTuiSlotSemantic, type RegistrationHandle, type RegistrationSpec, type RowsView, type SessionSnapshot, type SpacerView, type StackView, type StyledSpan, type SurfaceSnapshot, type SurfaceStateValues, type TextView, type ToolPresentationSnapshot, type TuiAction, type TuiAutocompleteItem, type TuiAutocompleteProvider, type TuiAutocompleteQuery, type TuiAutocompleteRegistryView, type TuiAutocompleteSuggestions, type TuiColorPalette, type TuiCommandBridgeSnapshot, type TuiCommandBridgeView, type TuiCommandContribution, type TuiCommandHandle, type TuiKeybindingContribution, type TuiKeybindingHandle, type TuiKeybindingRegistrySnapshot, type TuiKeybindingRegistryView, type TuiLocalCommandHandler, type TuiMessageRendererContribution, type TuiOverlayHandle, type TuiOverlayOptions, type TuiRendererHandle, type TuiRendererRegistrySnapshot, type TuiSettingContribution, type TuiSettingHandle, type TuiSettingsRegistrySnapshot, type TuiSettingsRegistryView, type TuiSizeValue, type TuiThemeContribution, type TuiThemeHandle, type TuiThemeRegistrySnapshot, type TuiThemeRegistryView, type TuiToolRendererContribution, apply, describeKey, inject, name };
@@ -1,2 +1,2 @@
1
- import { a as PI_TUI_EXTENSIONS_SERVICE, i as name, o as API_VERSION, r as inject, s as describeKey, t as apply } from "./extensions-1WYBUQ8I.mjs";
1
+ import { a as PI_TUI_EXTENSIONS_SERVICE, i as name, o as API_VERSION, r as inject, s as describeKey, t as apply } from "./extensions-a-rxanjw.mjs";
2
2
  export { API_VERSION, PI_TUI_EXTENSIONS_SERVICE, apply, describeKey, inject, name };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { H as TuiAction } from "./public-types-BEjj7FEb.mjs";
1
+ import { H as TuiAction } from "./public-types-gZi3iFNh.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";
@@ -131,9 +131,17 @@ interface SurfaceCommandsService {
131
131
  /** The narrow context surface {@link readSurfaceCatalog} consumes. The
132
132
  * SKILL services are NOT reached here: every dsh skill/agent-presets
133
133
  * access goes through `runtime/direct/skill-catalog.ts` (the single-point
134
- * adapter, plan appendix B.1). */
134
+ * adapter, plan appendix B.1). `workingDirectory` is the official Session
135
+ * directory owner the skill scan scope resolves from — absent in a minimal
136
+ * composition, where the immutable header cwd remains the read. */
135
137
  interface SurfaceCatalogContext {
136
138
  get(name: 'commands'): SurfaceCommandsService | undefined;
139
+ /** The official Session directory owner (`workingDirectory.get(session)`),
140
+ * declared STRUCTURALLY here so this public interface never pulls a Direct
141
+ * adapter module into the shipped declaration graph. */
142
+ get(name: 'workingDirectory'): {
143
+ get(session: unknown): string;
144
+ } | undefined;
137
145
  }
138
146
  //#endregion
139
147
  //#region src/app/config/schema.d.ts
@@ -560,7 +568,9 @@ declare function foldCompactionEvent(state: {
560
568
  * on purpose: referencing the full {@link TuiApp} class from a public
561
569
  * export would inline the whole surface (and its internal registry/
562
570
  * presentation dependencies) into the published declaration bundle. The
563
- * settle contract only needs the three phase/busy/working setters. */
571
+ * settle contract needs the three phase/busy/working setters; PR3-A keeps
572
+ * this PUBLIC shape unchanged (it is re-exported from the package entry)
573
+ * and adapts it internally onto the display seam's aggregated commit. */
564
574
  interface CompactionSettleSurface {
565
575
  setCompactionPhase(phase: 'idle'): void;
566
576
  setBusy(busy: boolean): void;
@@ -587,14 +597,6 @@ declare function busyAfterTurnBoundary(eventType: 'turn/start' | 'turn/end', com
587
597
  * re-measures through the fold-outcome path (settleCompactionSurface), so
588
598
  * a STALE compaction/end can never trigger a measurement. */
589
599
  declare function contextRefreshKind(eventType: string): 'measure' | 'cheap';
590
- /**
591
- * The in-flight compaction state a resumed session log implies: the newest
592
- * compaction bracket decides. A `session/end-seed` boundary makes any
593
- * EARLIER unmatched `compaction/start` STALE — the upstream invariant
594
- * (inheritedOrphanStartSeqs) treats seed compactions that never settled
595
- * inside the seed as abandoned, so they must not re-arm the compacting
596
- * surface on resume.
597
- */
598
600
  declare function compactingFromLog(events: readonly {
599
601
  type: unknown;
600
602
  data?: unknown;