@qilin-agent/client-ui-conversation 3.1.5 → 3.1.7

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 (39) hide show
  1. package/README.i18n.yaml +2 -2
  2. package/README.md +7 -3
  3. package/README.zh.md +7 -3
  4. package/lib/client.js +5147 -454
  5. package/lib/index.js +13 -9
  6. package/lib/types/client/contract/composer-submission.d.ts +23 -0
  7. package/lib/types/client/contract/conversation.d.ts +10 -0
  8. package/lib/types/client/contract/draft-editor.d.ts +23 -0
  9. package/lib/types/client/contract/input.d.ts +42 -10
  10. package/lib/types/client/contract/records.d.ts +8 -3
  11. package/lib/types/client/contract/slots.d.ts +61 -5
  12. package/lib/types/client/contract/views.d.ts +2 -1
  13. package/lib/types/client/conversation/assembler.d.ts +3 -0
  14. package/lib/types/client/draft.d.ts +22 -0
  15. package/lib/types/client/index.d.ts +3 -3
  16. package/lib/types/client/input/decorations.d.ts +1 -1
  17. package/lib/types/client/input/editor/CommandChip.d.ts +13 -0
  18. package/lib/types/client/input/editor/command-chip-node.d.ts +87 -0
  19. package/lib/types/client/input/editor/command-chip-selection.d.ts +20 -0
  20. package/lib/types/client/input/editor/keymap.d.ts +6 -2
  21. package/lib/types/client/input/editor/projection.d.ts +3 -0
  22. package/lib/types/client/input/editor/runtime.d.ts +33 -11
  23. package/lib/types/client/input/editor/text-ref.d.ts +2 -7
  24. package/lib/types/client/input/editor/view-binding.d.ts +1 -1
  25. package/lib/types/client/input/facade.d.ts +74 -18
  26. package/lib/types/client/input/hub.d.ts +2 -10
  27. package/lib/types/client/input/machine.d.ts +9 -5
  28. package/lib/types/client/input/submission-analytics.d.ts +10 -0
  29. package/lib/types/client/locales.d.ts +12 -16
  30. package/lib/types/client/skeleton/ConversationSession.d.ts +1 -1
  31. package/lib/types/client/skeleton/DefaultConversationViews.d.ts +2 -2
  32. package/lib/types/client/skeleton/InputBar.d.ts +1 -1
  33. package/lib/types/client/stores.d.ts +8 -1
  34. package/lib/types/client/view-pins.d.ts +22 -0
  35. package/lib/types/conversation-settings.d.ts +4 -0
  36. package/lib/types/index.d.ts +20 -5
  37. package/package.json +37 -35
  38. package/lib/types/client/input/editor/claim-decor.d.ts +0 -23
  39. package/lib/types/client/settings/ContentWidthRow.d.ts +0 -26
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qilin-agent/client-ui-conversation",
3
3
  "description": "Target-neutral Conversation assembly, shell, composer, queue, and view navigation",
4
- "version": "3.1.5",
4
+ "version": "3.1.7",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -46,10 +46,10 @@
46
46
  },
47
47
  "license": "MIT",
48
48
  "dependencies": {
49
- "@qilin-agent/schemastery": "~3.18.3"
49
+ "@qilin-agent/schemastery": "~3.18.5"
50
50
  },
51
51
  "peerDependencies": {
52
- "@qilin-agent/kylin": "~4.0.3"
52
+ "@qilin-agent/kylin": "~4.0.5"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@lexical/headless": "^0.49.0",
@@ -64,38 +64,40 @@
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0",
66
66
  "zod": "^4.4.3",
67
- "@qilin-agent/api-remotes": "3.1.5",
68
- "@qilin-agent/agent": "3.1.5",
69
- "@qilin-agent/api-session-controller": "3.1.5",
70
- "@qilin-agent/attachment": "3.1.5",
71
- "@qilin-agent/api-workspace-controller": "3.1.5",
72
- "@qilin-agent/brand": "3.1.5",
73
- "@qilin-agent/client-locale": "3.1.5",
74
- "@qilin-agent/client-shortcuts": "3.1.5",
75
- "@qilin-agent/client-file-upload": "3.1.5",
76
- "@qilin-agent/client-store": "3.1.5",
77
- "@qilin-agent/client-test-runtime": "3.1.5",
78
- "@qilin-agent/client-ui-layout": "3.1.5",
79
- "@qilin-agent/client-ui-primitives": "3.1.5",
80
- "@qilin-agent/client-ui-renderer": "3.1.5",
81
- "@qilin-agent/client-ui-session": "3.1.5",
82
- "@qilin-agent/client-ui-settings": "3.1.5",
83
- "@qilin-agent/client-ui-slots": "3.1.5",
84
- "@qilin-agent/client-ui-workspace": "3.1.5",
85
- "@qilin-agent/commands": "3.1.5",
86
- "@qilin-agent/goal": "3.1.5",
87
- "@qilin-agent/kylin": "~4.0.3",
88
- "@qilin-agent/llm": "3.1.5",
89
- "@qilin-agent/plan-mode": "3.1.5",
90
- "@qilin-agent/session": "3.1.5",
91
- "@qilin-agent/settings": "3.1.5",
92
- "@qilin-agent/llm-retry": "3.1.5",
93
- "@qilin-agent/token-meter": "3.1.5",
94
- "@qilin-agent/tool-todo": "3.1.5",
95
- "@qilin-agent/util-crypto": "3.1.5",
96
- "@qilin-agent/util-workspace-path": "3.1.5",
97
- "@qilin-agent/workspace": "3.1.5",
98
- "@qilin-agent/util-values": "3.1.5"
67
+ "@qilin-agent/api-remotes": "3.1.7",
68
+ "@qilin-agent/agent": "3.1.7",
69
+ "@qilin-agent/api-session-controller": "3.1.7",
70
+ "@qilin-agent/attachment": "3.1.7",
71
+ "@qilin-agent/api-workspace-controller": "3.1.7",
72
+ "@qilin-agent/brand": "3.1.7",
73
+ "@qilin-agent/client-file-upload": "3.1.7",
74
+ "@qilin-agent/client-locale": "3.1.7",
75
+ "@qilin-agent/client-shortcuts": "3.1.7",
76
+ "@qilin-agent/client-store": "3.1.7",
77
+ "@qilin-agent/client-test-runtime": "3.1.7",
78
+ "@qilin-agent/client-ui-layout": "3.1.7",
79
+ "@qilin-agent/client-product-analytics": "3.1.7",
80
+ "@qilin-agent/goal": "3.1.7",
81
+ "@qilin-agent/plan-mode": "3.1.7",
82
+ "@qilin-agent/client-ui-primitives": "3.1.7",
83
+ "@qilin-agent/client-ui-renderer": "3.1.7",
84
+ "@qilin-agent/client-ui-session": "3.1.7",
85
+ "@qilin-agent/client-ui-workspace": "3.1.7",
86
+ "@qilin-agent/client-ui-slots": "3.1.7",
87
+ "@qilin-agent/commands": "3.1.7",
88
+ "@qilin-agent/client-ui-settings": "3.1.7",
89
+ "@qilin-agent/file-reference": "3.1.7",
90
+ "@qilin-agent/kylin": "~4.0.5",
91
+ "@qilin-agent/llm": "3.1.7",
92
+ "@qilin-agent/llm-retry": "3.1.7",
93
+ "@qilin-agent/session": "3.1.7",
94
+ "@qilin-agent/token-meter": "3.1.7",
95
+ "@qilin-agent/tool-todo": "3.1.7",
96
+ "@qilin-agent/util-values": "3.1.7",
97
+ "@qilin-agent/util-crypto": "3.1.7",
98
+ "@qilin-agent/settings": "3.1.7",
99
+ "@qilin-agent/util-workspace-path": "3.1.7",
100
+ "@qilin-agent/workspace": "3.1.7"
99
101
  },
100
102
  "files": [
101
103
  "lib/index.js",
@@ -1,23 +0,0 @@
1
- /**
2
- * Claim-token highlight: while a command claim holds, the draft's leading
3
- * token renders in the warn color. A TextNode transform keeps the token in
4
- * its own styled node (splitting when typing merges text into it), and the
5
- * shell nudges the first leaf dirty when the claim flips so entering and
6
- * leaving claimed restyles without a text edit.
7
- */
8
- import type { LexicalEditor } from 'lexical';
9
- /**
10
- * Register the claim-token styling transform.
11
- * @param editor - the shell-owned editor.
12
- * @param activeToken - live claim token accessor; null while unclaimed.
13
- * @returns the unregister disposer.
14
- */
15
- export declare function registerClaimDecoration(editor: LexicalEditor, activeToken: () => string | null): () => void;
16
- /**
17
- * Nudge the token seat dirty so the transform restyles after a claim flip
18
- * (claims change phase without a text edit; transforms only run on dirty
19
- * nodes).
20
- * @param editor - the shell-owned editor.
21
- */
22
- export declare function refreshClaimDecoration(editor: LexicalEditor): void;
23
- //# sourceMappingURL=claim-decor.d.ts.map
@@ -1,26 +0,0 @@
1
- /**
2
- * General Settings row for the transcript content width. The pill carries the
3
- * persisted width — the word for the adaptive column clamp, otherwise the px
4
- * value — and steps it by CONTENT_WIDTH_STEP. Reverting to the clamp is an
5
- * explicit action, never a stepper bound.
6
- */
7
- import type { SnapshotStore } from '@qilin-agent/client-store';
8
- import type { InjectFace, PropsLocale, PropsRuntime } from '@qilin-agent/client-ui-slots';
9
- /** Registration-side preference face. */
10
- export interface ContentWidthRowInjected {
11
- hooks: {
12
- /** Persisted transcript width bound as useContentWidth. */
13
- contentWidth: SnapshotStore<number>;
14
- };
15
- /** Persist a width, or {@link CONTENT_WIDTH_ADAPTIVE} to return to the adaptive clamp. */
16
- setContentWidth: (px: number) => void;
17
- }
18
- /** Full Settings-row props. */
19
- export type ContentWidthRowProps = PropsRuntime<'settings.general.item'> & PropsLocale<'conversation'> & InjectFace<ContentWidthRowInjected>;
20
- /**
21
- * Render the transcript width row.
22
- * @param props - composed Settings slot props.
23
- * @returns the preference row.
24
- */
25
- export declare function ContentWidthRow({ t, useContentWidth, setContentWidth }: ContentWidthRowProps): import("react").JSX.Element;
26
- //# sourceMappingURL=ContentWidthRow.d.ts.map