@qilin-agent/client-ui-chat 0.0.0-stage → 3.1.4
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/LICENSE +21 -0
- package/README.i18n.yaml +55 -0
- package/README.md +132 -2
- package/README.zh.md +134 -0
- package/lib/client.js +13900 -0
- package/lib/index.js +54 -0
- package/lib/types/chat-settings.d.ts +47 -0
- package/lib/types/client/apply.d.ts +15 -0
- package/lib/types/client/chat/ApprovalCommand.d.ts +20 -0
- package/lib/types/client/chat/AssistantMarkdown.d.ts +52 -0
- package/lib/types/client/chat/AssistantNodeView.d.ts +7 -0
- package/lib/types/client/chat/ChatFlow.d.ts +4 -0
- package/lib/types/client/chat/ChatGroupSeat.d.ts +15 -0
- package/lib/types/client/chat/ChatNodeSeat.d.ts +25 -0
- package/lib/types/client/chat/ChatView.d.ts +7 -0
- package/lib/types/client/chat/CommandNodeView.d.ts +9 -0
- package/lib/types/client/chat/CompactionCommandCard.d.ts +8 -0
- package/lib/types/client/chat/CompactionItem.d.ts +19 -0
- package/lib/types/client/chat/ContextBody.d.ts +131 -0
- package/lib/types/client/chat/ContextInjectionRow.d.ts +26 -0
- package/lib/types/client/chat/GenericCommandCard.d.ts +9 -0
- package/lib/types/client/chat/MessageIconActions.d.ts +37 -0
- package/lib/types/client/chat/MessageItem.d.ts +42 -0
- package/lib/types/client/chat/ReasoningContent.d.ts +16 -0
- package/lib/types/client/chat/ReasoningRow.d.ts +23 -0
- package/lib/types/client/chat/RunningSeal.d.ts +6 -0
- package/lib/types/client/chat/RunningStatus.d.ts +13 -0
- package/lib/types/client/chat/StatsPills.d.ts +71 -0
- package/lib/types/client/chat/SystemPromptRow.d.ts +22 -0
- package/lib/types/client/chat/TurnNavigator.d.ts +28 -0
- package/lib/types/client/chat/TurnProcessNodeView.d.ts +4 -0
- package/lib/types/client/chat/TurnTailNodeView.d.ts +7 -0
- package/lib/types/client/chat/TurnTriggerNodeView.d.ts +4 -0
- package/lib/types/client/chat/TurnUsagePanel.d.ts +15 -0
- package/lib/types/client/chat/flow-motion.d.ts +59 -0
- package/lib/types/client/chat/message-chrome.d.ts +50 -0
- package/lib/types/client/chat/register-node-renderers.d.ts +14 -0
- package/lib/types/client/chat/render-entry.d.ts +9 -0
- package/lib/types/client/chat/searchable-hidden.d.ts +17 -0
- package/lib/types/client/chat/stat-dialog.d.ts +20 -0
- package/lib/types/client/chat/step-process.d.ts +11 -0
- package/lib/types/client/chat/token-format.d.ts +25 -0
- package/lib/types/client/chat/turn-assistant.d.ts +8 -0
- package/lib/types/client/chat/turn-rail-items.d.ts +37 -0
- package/lib/types/client/chat/turn-trigger.d.ts +15 -0
- package/lib/types/client/chat/use-calendar-day.d.ts +6 -0
- package/lib/types/client/chat/use-chat-navigation.d.ts +69 -0
- package/lib/types/client/chat/use-chat-reading.d.ts +110 -0
- package/lib/types/client/chat/use-chat-scroll.d.ts +43 -0
- package/lib/types/client/chat/use-chat-viewport.d.ts +197 -0
- package/lib/types/client/chat/use-disclosure.d.ts +15 -0
- package/lib/types/client/chat/use-process-scroll.d.ts +23 -0
- package/lib/types/client/chat/use-scroll-follow.d.ts +106 -0
- package/lib/types/client/chat/use-turn-data.d.ts +9 -0
- package/lib/types/client/contract/assistant-content.d.ts +9 -0
- package/lib/types/client/contract/chat-nodes.d.ts +108 -0
- package/lib/types/client/contract/chat-visibility.d.ts +10 -0
- package/lib/types/client/contract/process-groups.d.ts +25 -0
- package/lib/types/client/contract/slots.d.ts +340 -0
- package/lib/types/client/contract/snapshot.d.ts +107 -0
- package/lib/types/client/contract/store.d.ts +15 -0
- package/lib/types/client/contract/turn-metrics.d.ts +19 -0
- package/lib/types/client/contract/turn-process.d.ts +40 -0
- package/lib/types/client/conversation-nodes/assistant.d.ts +36 -0
- package/lib/types/client/conversation-nodes/chat-snapshot-builder.d.ts +103 -0
- package/lib/types/client/conversation-nodes/command.d.ts +53 -0
- package/lib/types/client/conversation-nodes/common.d.ts +41 -0
- package/lib/types/client/conversation-nodes/compaction.d.ts +21 -0
- package/lib/types/client/conversation-nodes/event-projection.d.ts +63 -0
- package/lib/types/client/conversation-nodes/fallback.d.ts +16 -0
- package/lib/types/client/conversation-nodes/inbox.d.ts +40 -0
- package/lib/types/client/conversation-nodes/message.d.ts +42 -0
- package/lib/types/client/conversation-nodes/process-activity.d.ts +9 -0
- package/lib/types/client/conversation-nodes/process-groups.d.ts +27 -0
- package/lib/types/client/conversation-nodes/register.d.ts +7 -0
- package/lib/types/client/conversation-nodes/request-prompt.d.ts +44 -0
- package/lib/types/client/conversation-nodes/retry.d.ts +22 -0
- package/lib/types/client/conversation-nodes/tool.d.ts +23 -0
- package/lib/types/client/conversation-nodes/turn-error.d.ts +30 -0
- package/lib/types/client/conversation-nodes/turn-max-tokens.d.ts +22 -0
- package/lib/types/client/conversation-nodes/turn-navigation.d.ts +17 -0
- package/lib/types/client/conversation-nodes/turn-process-presentation.d.ts +30 -0
- package/lib/types/client/conversation-nodes/turn-process.d.ts +34 -0
- package/lib/types/client/conversation-nodes/turn-tail.d.ts +28 -0
- package/lib/types/client/index.d.ts +38 -0
- package/lib/types/client/locale.d.ts +386 -0
- package/lib/types/client/markdown-labels.d.ts +10 -0
- package/lib/types/client/model/conversation-context.d.ts +21 -0
- package/lib/types/client/model/tool-call-tree.d.ts +45 -0
- package/lib/types/client/performance-usage.d.ts +20 -0
- package/lib/types/client/presentation-policy.d.ts +37 -0
- package/lib/types/client/settings/LinkOpeningRow.d.ts +24 -0
- package/lib/types/client/settings/PerformanceUsageRow.d.ts +22 -0
- package/lib/types/client/settings/PreferenceRow.d.ts +18 -0
- package/lib/types/client/settings/TranscriptViewRow.d.ts +27 -0
- package/lib/types/client/stores.d.ts +30 -0
- package/lib/types/client/transcript-view.d.ts +35 -0
- package/lib/types/index.d.ts +6 -0
- package/package.json +106 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Host-backed work details and independent, in-memory collapse timing. */
|
|
2
|
+
import { type SnapshotStore } from '@qilin-agent/client-store';
|
|
3
|
+
import type { ConfigForm } from '@qilin-agent/client-ui-settings/client';
|
|
4
|
+
import type { CollapseTiming } from './presentation-policy.ts';
|
|
5
|
+
import { type ChatSettings, type TranscriptViewMode } from '../chat-settings.ts';
|
|
6
|
+
/** Live work-details preference consumed by Chat and its Settings row. */
|
|
7
|
+
export declare class TranscriptViewPolicy {
|
|
8
|
+
private readonly host;
|
|
9
|
+
private readonly defaultMode;
|
|
10
|
+
private readonly unsubscribe;
|
|
11
|
+
/** Reactive current mode, including the client default before Host settings arrive. */
|
|
12
|
+
readonly mode: SnapshotStore<TranscriptViewMode>;
|
|
13
|
+
/** Independent Client-lifetime choice; each new instance starts with completion-time folding. */
|
|
14
|
+
readonly collapseTiming: SnapshotStore<CollapseTiming>;
|
|
15
|
+
/**
|
|
16
|
+
* @param host - durable Chat settings scope.
|
|
17
|
+
* @param defaultMode - presentation used without an explicit saved mode.
|
|
18
|
+
*/
|
|
19
|
+
constructor(host: ConfigForm<ChatSettings>, defaultMode?: TranscriptViewMode);
|
|
20
|
+
/** Release the accepted-value subscription. */
|
|
21
|
+
dispose(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Publish and persist one explicit user choice.
|
|
24
|
+
* @param mode - Compact, Standard, Detailed, or Verbose work details.
|
|
25
|
+
*/
|
|
26
|
+
setMode(mode: TranscriptViewMode): void;
|
|
27
|
+
/**
|
|
28
|
+
* Keep collapse timing in memory without writing Host or browser storage.
|
|
29
|
+
* @param timing - immediate completion folding or deferred folding at the next input.
|
|
30
|
+
*/
|
|
31
|
+
setCollapseTiming(timing: CollapseTiming): void;
|
|
32
|
+
/** Adopt the latest accepted Host section without writing it back. */
|
|
33
|
+
private adopt;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=transcript-view.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Host registration for browser Chat preferences. */
|
|
2
|
+
import type { Context } from '@qilin-agent/kylin';
|
|
3
|
+
export { CHAT_SETTINGS_NAMESPACE, ChatSettingsFields, DEFAULT_LINK_OPENING, DEFAULT_PERFORMANCE_USAGE, DEFAULT_TRANSCRIPT_VIEW_MODE, LEGACY_EXPANDED_TRANSCRIPT_VIEW_MODE, LEGACY_TRANSCRIPT_VIEW_MODE, PERFORMANCE_USAGE_MODES, TRANSCRIPT_VIEW_FIELD, TRANSCRIPT_VIEW_MODES, type ChatSettings, type LinkOpening, type PerformanceUsageMode, type TranscriptViewMode, } from './chat-settings.ts';
|
|
4
|
+
/** Register the durable Chat settings section when a provider exists. */
|
|
5
|
+
export declare function apply(ctx: Context): void;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,109 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qilin-agent/client-ui-chat",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "Chat Conversation target, node definitions, renderers, and details surface",
|
|
4
|
+
"version": "3.1.4",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/kkutysllb/QiLin.git",
|
|
11
|
+
"directory": "packages/client/ui-chat"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "lib/index.js",
|
|
18
|
+
"types": "lib/types/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./lib/types/index.d.ts",
|
|
22
|
+
"default": "./lib/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./client": {
|
|
25
|
+
"types": "./lib/types/client/index.d.ts",
|
|
26
|
+
"default": "./lib/client.js"
|
|
27
|
+
},
|
|
28
|
+
"./src/*": "./src/*",
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"qilin": {
|
|
32
|
+
"client": {
|
|
33
|
+
"inject": [
|
|
34
|
+
"@qilin-agent/api-session-controller",
|
|
35
|
+
"@qilin-agent/api-workspace-controller",
|
|
36
|
+
"@qilin-agent/client-locale",
|
|
37
|
+
"@qilin-agent/client-ui-conversation",
|
|
38
|
+
"@qilin-agent/client-ui-trajectory",
|
|
39
|
+
"@qilin-agent/client-ui-layout",
|
|
40
|
+
"@qilin-agent/client-ui-renderer",
|
|
41
|
+
"@qilin-agent/client-ui-session",
|
|
42
|
+
"@qilin-agent/client-ui-sidebar-right",
|
|
43
|
+
"@qilin-agent/client-ui-settings",
|
|
44
|
+
"@qilin-agent/client-ui-workspace"
|
|
45
|
+
],
|
|
46
|
+
"platform": "web"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@qilin-agent/kylin": "~4.0.3"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/react": "~18.3.1",
|
|
55
|
+
"@types/react-dom": "~18.3.0",
|
|
56
|
+
"react": "^18.2.0",
|
|
57
|
+
"react-dom": "^18.2.0",
|
|
58
|
+
"@tanstack/react-virtual": "^3.14.9",
|
|
59
|
+
"@qilin-agent/kylin": "~4.0.3",
|
|
60
|
+
"@qilin-agent/api-remotes": "3.1.4",
|
|
61
|
+
"@qilin-agent/agent": "3.1.4",
|
|
62
|
+
"@qilin-agent/api-session-controller": "3.1.4",
|
|
63
|
+
"@qilin-agent/api-workspace-controller": "3.1.4",
|
|
64
|
+
"@qilin-agent/api-workspace-files": "3.1.4",
|
|
65
|
+
"@qilin-agent/client-locale": "3.1.4",
|
|
66
|
+
"@qilin-agent/client-store": "3.1.4",
|
|
67
|
+
"@qilin-agent/client-ui-approval": "3.1.4",
|
|
68
|
+
"@qilin-agent/client-ui-conversation": "3.1.4",
|
|
69
|
+
"@qilin-agent/client-ui-layout": "3.1.4",
|
|
70
|
+
"@qilin-agent/client-ui-primitives": "3.1.4",
|
|
71
|
+
"@qilin-agent/attachment": "3.1.4",
|
|
72
|
+
"@qilin-agent/client-ui-session": "3.1.4",
|
|
73
|
+
"@qilin-agent/client-ui-settings": "3.1.4",
|
|
74
|
+
"@qilin-agent/client-ui-renderer": "3.1.4",
|
|
75
|
+
"@qilin-agent/client-ui-sidebar-right": "3.1.4",
|
|
76
|
+
"@qilin-agent/client-ui-sidebar-documentpreview": "3.1.4",
|
|
77
|
+
"@qilin-agent/client-ui-trajectory": "3.1.4",
|
|
78
|
+
"@qilin-agent/client-ui-sidebar-browser": "3.1.4",
|
|
79
|
+
"@qilin-agent/client-ui-slots": "3.1.4",
|
|
80
|
+
"@qilin-agent/commands": "3.1.4",
|
|
81
|
+
"@qilin-agent/client-ui-workspace": "3.1.4",
|
|
82
|
+
"@qilin-agent/compaction": "3.1.4",
|
|
83
|
+
"@qilin-agent/llm-retry": "3.1.4",
|
|
84
|
+
"@qilin-agent/session-turn-outline": "3.1.4",
|
|
85
|
+
"@qilin-agent/session": "3.1.4",
|
|
86
|
+
"@qilin-agent/llm": "3.1.4",
|
|
87
|
+
"@qilin-agent/subagent": "3.1.4",
|
|
88
|
+
"@qilin-agent/settings": "3.1.4",
|
|
89
|
+
"@qilin-agent/token-meter": "3.1.4",
|
|
90
|
+
"@qilin-agent/tools": "3.1.4",
|
|
91
|
+
"@qilin-agent/util-workspace-path": "3.1.4",
|
|
92
|
+
"@qilin-agent/util-values": "3.1.4",
|
|
93
|
+
"@qilin-agent/brand": "3.1.4",
|
|
94
|
+
"@qilin-agent/client-ui-input-trigger": "3.1.4",
|
|
95
|
+
"@qilin-agent/session-stats": "3.1.4"
|
|
96
|
+
},
|
|
97
|
+
"dependencies": {
|
|
98
|
+
"@qilin-agent/schemastery": "~3.18.3"
|
|
99
|
+
},
|
|
100
|
+
"files": [
|
|
101
|
+
"lib/index.js",
|
|
102
|
+
"lib/client.js",
|
|
103
|
+
"lib/types/**/*.d.ts"
|
|
104
|
+
],
|
|
105
|
+
"scripts": {
|
|
106
|
+
"bundle": "tsdown",
|
|
107
|
+
"watch": "tsdown --watch"
|
|
108
|
+
}
|
|
6
109
|
}
|