@timurproko/a1 0.2.5-dev.683 → 0.2.5-dev.704
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/dist/app/session-shell/prompt-suggestion-controller.d.ts +2 -0
- package/dist/app/session-shell/prompt-suggestion-controller.js +10 -0
- package/dist/app/session-shell/session-shell-root.js +15 -2
- package/dist/app/session-shell/session-shell.js +80 -23
- package/dist/app/session-shell/share-operation.d.ts +3 -0
- package/dist/app/session-shell/share-operation.js +11 -0
- package/dist/composition/owned-ui.js +2 -0
- package/dist/composition/settings-route-host.js +1 -1
- package/dist/contracts/presentation/index.d.ts +11 -1
- package/dist/contracts/presentation/index.js +6 -2
- package/dist/features/owned-ui/project-trust-dialog.js +7 -5
- package/dist/features/owned-ui/reference-screen-app.d.ts +2 -2
- package/dist/features/owned-ui/reference-screen-app.js +10 -6
- package/dist/features/owned-ui/settings-app.d.ts +1 -1
- package/dist/features/owned-ui/settings-app.js +342 -66
- package/dist/integrations/pi/components/index.d.ts +3 -2
- package/dist/integrations/pi/components/index.js +2 -1
- package/dist/integrations/pi/components/modal-frame.d.ts +11 -1
- package/dist/integrations/pi/components/modal-frame.js +29 -1
- package/dist/integrations/pi/components/models-dialog.js +19 -19
- package/dist/integrations/pi/components/share-operation-dialog.d.ts +6 -0
- package/dist/integrations/pi/components/share-operation-dialog.js +40 -0
- package/dist/integrations/pi/components/shell-editor-autocomplete.js +55 -8
- package/dist/integrations/pi/components/shell-extension-ui.d.ts +3 -0
- package/dist/integrations/pi/components/shell-extension-ui.js +8 -4
- package/dist/integrations/pi/components/shell-selectors-dialogs.d.ts +0 -4
- package/dist/integrations/pi/components/shell-selectors-dialogs.js +56 -34
- package/dist/integrations/pi/components/shell-session-info-reference.js +35 -2
- package/dist/integrations/pi/components/shell-shared-facade.d.ts +3 -1
- package/dist/integrations/pi/components/shell-shared-facade.js +13 -1
- package/dist/integrations/pi/components/skills-dialog.js +21 -8
- package/dist/integrations/pi/components/theme.d.ts +8 -1
- package/dist/integrations/pi/components/theme.js +28 -1
- package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.d.ts +10 -2
- package/dist/integrations/pi/components/upstream/adjacent/core/keybindings.js +20 -6
- package/dist/integrations/pi/components/upstream/components/extension-editor.js +2 -2
- package/dist/integrations/pi/components/upstream/components/extension-input.js +4 -5
- package/dist/integrations/pi/components/upstream/components/extension-selector.js +2 -3
- package/dist/integrations/pi/components/upstream/components/owned-editor.d.ts +4 -2
- package/dist/integrations/pi/components/upstream/components/owned-editor.js +48 -12
- package/dist/integrations/pi/components/upstream/components/scoped-models-selector.d.ts +3 -2
- package/dist/integrations/pi/components/upstream/components/scoped-models-selector.js +4 -15
- package/dist/integrations/pi/components/upstream/components/session-selector.d.ts +2 -0
- package/dist/integrations/pi/components/upstream/components/session-selector.js +137 -110
- package/dist/integrations/pi/components/upstream/components/thinking-selector.d.ts +9 -5
- package/dist/integrations/pi/components/upstream/components/thinking-selector.js +65 -26
- package/dist/integrations/pi/components/upstream/components/tree-selector.d.ts +31 -21
- package/dist/integrations/pi/components/upstream/components/tree-selector.js +255 -214
- package/dist/integrations/pi/components/upstream/components/trust-selector.js +13 -15
- package/dist/integrations/pi/engine/adapter.js +21 -2
- package/dist/integrations/pi/engine/workflow-runner.js +2 -1
- package/dist/native/darwin-arm64/manifest.json +1 -1
- package/dist/native/linux-x64/manifest.json +1 -1
- package/dist/native/win32-x64/manifest.json +2 -2
- package/dist/native/win32-x64/process-guardian.exe +0 -0
- package/dist/ui/apps/host.d.ts +4 -3
- package/dist/ui/apps/host.js +9 -4
- package/dist/ui/components/dialog-panel.d.ts +15 -0
- package/dist/ui/components/dialog-panel.js +55 -9
- package/dist/ui/components/index.d.ts +3 -3
- package/dist/ui/components/index.js +2 -2
- package/dist/ui/components/line-input.d.ts +2 -0
- package/dist/ui/components/line-input.js +2 -2
- package/dist/ui/components/list-view.d.ts +3 -3
- package/dist/ui/components/list-view.js +8 -9
- package/dist/ui/components/prompt-input.d.ts +2 -2
- package/dist/ui/components/prompt-input.js +5 -5
- package/dist/ui/components/shortcut-hints.d.ts +10 -3
- package/dist/ui/components/shortcut-hints.js +42 -6
- package/dist/ui/components/shortcuts.d.ts +1 -1
- package/dist/ui/components/shortcuts.js +4 -0
- package/dist/ui/components/theme.d.ts +1 -1
- package/dist/ui/components/value-menu.js +3 -1
- package/dist/ui/settings/manager.d.ts +1 -0
- package/dist/ui/settings/manager.js +9 -3
- package/package.json +1 -1
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Provenance: @earendil-works/pi-coding-agent 1.0.4 (MIT), commit 7c10bd4337495ee613f2224843ecdf349b80d1df,
|
|
3
3
|
* packages/coding-agent/src/modes/interactive/components/tree-selector.ts.
|
|
4
|
-
* Modifications:
|
|
5
|
-
* tree
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* Modifications: Port remaps public types/components plus owned keybindings/theme helpers while
|
|
5
|
+
* preserving tree behavior; bare A1 uses compact modal chrome and label editing, four-mode
|
|
6
|
+
* Models-style filter status with Tab/Shift+Tab directional cycling and concise all-first presentation
|
|
7
|
+
* excluding internal bookkeeping, standard search input, blue item-bounded menu-arrow selection that
|
|
8
|
+
* preserves per-entry semantic foregrounds and has no path bullets, accent entry labels, bracketed
|
|
9
|
+
* timestamps, numeric result counters without duplicate label-time status, and a stateful time on/off
|
|
10
|
+
* shortcut, semantic role colors with session naming for the system root, standard
|
|
11
|
+
* paging/first-last/non-root containing-branch folding keys with a permanently expanded system session
|
|
12
|
+
* entry even behind hidden metadata, single-character ellipses on both clipped edges with
|
|
13
|
+
* bracket-delimiter preservation and selected-fragment highlighting, and Models-ordered semantic
|
|
14
|
+
* Type/search shortcut footers without a redundant select hint.
|
|
15
|
+
* Deviations: owned-modal-shortcut-hints, owned-session-tree-dialog.
|
|
9
16
|
*/
|
|
10
17
|
import { type Component, Container, type Focusable } from "@earendil-works/pi-tui";
|
|
11
18
|
import { type SessionTreeNode } from "@earendil-works/pi-coding-agent";
|
|
@@ -22,9 +29,9 @@ declare class TreeList implements Component {
|
|
|
22
29
|
private toolCallMap;
|
|
23
30
|
private multipleRoots;
|
|
24
31
|
private showLabelTimestamps;
|
|
25
|
-
private activePathIds;
|
|
26
32
|
private visibleParentMap;
|
|
27
33
|
private visibleChildrenMap;
|
|
34
|
+
private sessionRootIds;
|
|
28
35
|
private lastSelectedId;
|
|
29
36
|
private foldedNodes;
|
|
30
37
|
onSelect?: (entryId: string) => void;
|
|
@@ -37,8 +44,6 @@ declare class TreeList implements Component {
|
|
|
37
44
|
* Returns the index in filteredNodes, or the last index as fallback.
|
|
38
45
|
*/
|
|
39
46
|
private findNearestVisibleIndex;
|
|
40
|
-
/** Build the set of entry IDs on the path from root to current leaf */
|
|
41
|
-
private buildActivePath;
|
|
42
47
|
private flattenTree;
|
|
43
48
|
private applyFilter;
|
|
44
49
|
/**
|
|
@@ -52,10 +57,11 @@ declare class TreeList implements Component {
|
|
|
52
57
|
private getSearchableText;
|
|
53
58
|
invalidate(): void;
|
|
54
59
|
getSearchQuery(): string;
|
|
60
|
+
getFilterMode(): FilterMode;
|
|
61
|
+
isLabelTimestampVisible(): boolean;
|
|
55
62
|
getSelectedNode(): SessionTreeNode | undefined;
|
|
56
63
|
copySelected(): void;
|
|
57
64
|
updateNodeLabel(entryId: string, label: string | undefined, labelTimestamp?: string): void;
|
|
58
|
-
private getStatusLabels;
|
|
59
65
|
render(width: number): string[];
|
|
60
66
|
private getEntryDisplayText;
|
|
61
67
|
private formatLabelTimestamp;
|
|
@@ -66,18 +72,15 @@ declare class TreeList implements Component {
|
|
|
66
72
|
private formatToolCall;
|
|
67
73
|
handleInput(keyData: string): void;
|
|
68
74
|
/**
|
|
69
|
-
* Whether a node can be folded.
|
|
70
|
-
*
|
|
71
|
-
*
|
|
75
|
+
* Whether a node can be folded. The system entry rendered as the session root
|
|
76
|
+
* stays expanded even when hidden metadata precedes it; other nodes are
|
|
77
|
+
* foldable when they have visible children and either appear at the filtered
|
|
78
|
+
* root or begin a segment below a visible branch point.
|
|
72
79
|
*/
|
|
73
80
|
private isFoldable;
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*
|
|
78
|
-
* "up" walks the visible parent chain; "down" walks visible children
|
|
79
|
-
* (always following the first child).
|
|
80
|
-
*/
|
|
81
|
+
/** Resolve the nearest expanded branch containing the selected entry. */
|
|
82
|
+
private findNearestExpandedBranch;
|
|
83
|
+
/** Find the next branch segment start for the retained modified-arrow shortcuts. */
|
|
81
84
|
private findBranchSegmentStart;
|
|
82
85
|
}
|
|
83
86
|
/**
|
|
@@ -85,15 +88,22 @@ declare class TreeList implements Component {
|
|
|
85
88
|
*/
|
|
86
89
|
export declare class TreeSelectorComponent extends Container implements Focusable {
|
|
87
90
|
private treeList;
|
|
91
|
+
private readonly searchInput;
|
|
92
|
+
private readonly treeFilter;
|
|
93
|
+
private readonly titleText;
|
|
94
|
+
private readonly searchInputContainer;
|
|
95
|
+
private readonly treeContainer;
|
|
96
|
+
private readonly labelInputContainer;
|
|
97
|
+
private readonly footerContainer;
|
|
98
|
+
private readonly treeHelp;
|
|
88
99
|
private labelInput;
|
|
89
|
-
private labelInputContainer;
|
|
90
|
-
private treeContainer;
|
|
91
100
|
private onLabelChangeCallback;
|
|
92
101
|
onCopy?: (text: string | undefined) => void;
|
|
93
102
|
private _focused;
|
|
94
103
|
get focused(): boolean;
|
|
95
104
|
set focused(value: boolean);
|
|
96
105
|
constructor(tree: SessionTreeNode[], currentLeafId: string | null, terminalHeight: number, onSelect: (entryId: string) => void, onCancel: () => void, onLabelChange?: (entryId: string, label: string | undefined) => void, initialSelectedId?: string, initialFilterMode?: FilterMode);
|
|
106
|
+
private restoreTreeContent;
|
|
97
107
|
private showLabelInput;
|
|
98
108
|
private hideLabelInput;
|
|
99
109
|
handleInput(keyData: string): void;
|