@morlay/dsh-client-ui-conversation 0.0.2-alpha.0

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.
@@ -0,0 +1,10 @@
1
+ import { a as ConversationSettings, i as CONVERSATION_SETTINGS_NAMESPACE, n as BUSY_ENTER_FIELD, o as DEFAULT_BUSY_ENTER_BEHAVIOR, r as BusyEnterBehavior, t as BUSY_ENTER_BEHAVIORS } from "./submission-settings-oeopbUPo.cjs";
2
+ import { Context } from "@deepseek-ai/cordis";
3
+ //#region ../../../vendor/deepseek-harness/packages/client/ui-conversation/src/index.d.ts
4
+ /**
5
+ * Register the durable conversation section when a settings provider exists.
6
+ * @param ctx - Host context whose optional settings service owns the section.
7
+ */
8
+ declare function apply(ctx: Context): void;
9
+ //#endregion
10
+ export { BUSY_ENTER_BEHAVIORS, BUSY_ENTER_FIELD, type BusyEnterBehavior, CONVERSATION_SETTINGS_NAMESPACE, type ConversationSettings, DEFAULT_BUSY_ENTER_BEHAVIOR, apply };
@@ -0,0 +1,10 @@
1
+ import { a as ConversationSettings, i as CONVERSATION_SETTINGS_NAMESPACE, n as BUSY_ENTER_FIELD, o as DEFAULT_BUSY_ENTER_BEHAVIOR, r as BusyEnterBehavior, t as BUSY_ENTER_BEHAVIORS } from "./submission-settings-DWNYzsqo.mjs";
2
+ import { Context } from "@deepseek-ai/cordis";
3
+ //#region ../../../vendor/deepseek-harness/packages/client/ui-conversation/src/index.d.ts
4
+ /**
5
+ * Register the durable conversation section when a settings provider exists.
6
+ * @param ctx - Host context whose optional settings service owns the section.
7
+ */
8
+ declare function apply(ctx: Context): void;
9
+ //#endregion
10
+ export { BUSY_ENTER_BEHAVIORS, BUSY_ENTER_FIELD, type BusyEnterBehavior, CONVERSATION_SETTINGS_NAMESPACE, type ConversationSettings, DEFAULT_BUSY_ENTER_BEHAVIOR, apply };
package/dist/index.mjs ADDED
@@ -0,0 +1,13 @@
1
+ import { a as DEFAULT_BUSY_ENTER_BEHAVIOR, i as ConversationSettingsSchema, n as BUSY_ENTER_FIELD, r as CONVERSATION_SETTINGS_NAMESPACE, t as BUSY_ENTER_BEHAVIORS } from "./submission-settings-BpcyEbde.mjs";
2
+ //#region ../../../vendor/deepseek-harness/packages/client/ui-conversation/src/index.ts
3
+ /**
4
+ * Register the durable conversation section when a settings provider exists.
5
+ * @param ctx - Host context whose optional settings service owns the section.
6
+ */
7
+ function apply(ctx) {
8
+ ctx.inject(["settings"], (settingsCtx) => {
9
+ settingsCtx.settings.register(CONVERSATION_SETTINGS_NAMESPACE, ConversationSettingsSchema);
10
+ });
11
+ }
12
+ //#endregion
13
+ export { BUSY_ENTER_BEHAVIORS, BUSY_ENTER_FIELD, CONVERSATION_SETTINGS_NAMESPACE, DEFAULT_BUSY_ENTER_BEHAVIOR, apply };
@@ -0,0 +1,15 @@
1
+ import z from "@deepseek-ai/schemastery";
2
+ //#region ../../../vendor/deepseek-harness/packages/client/ui-conversation/src/submission-settings.ts
3
+ /** Busy-Enter preference stored in the Host user-settings document. */
4
+ /** Settings namespace owned by the conversation plugin. */
5
+ const CONVERSATION_SETTINGS_NAMESPACE = "ui-conversation";
6
+ /** Field carrying the delivery mode for plain Enter while an agent is busy. */
7
+ const BUSY_ENTER_FIELD = "busyEnter";
8
+ /** Busy-Enter behaviors accepted at settings and input boundaries. */
9
+ const BUSY_ENTER_BEHAVIORS = ["queue", "steer"];
10
+ /** Default preserves Enter-as-Queue for running conversations. */
11
+ const DEFAULT_BUSY_ENTER_BEHAVIOR = "queue";
12
+ /** Durable conversation schema; also the wire envelope the browser scope validates against. */
13
+ const ConversationSettingsSchema = z.object({ [BUSY_ENTER_FIELD]: z.union([...BUSY_ENTER_BEHAVIORS]).default(DEFAULT_BUSY_ENTER_BEHAVIOR) });
14
+ //#endregion
15
+ export { DEFAULT_BUSY_ENTER_BEHAVIOR as a, ConversationSettingsSchema as i, BUSY_ENTER_FIELD as n, CONVERSATION_SETTINGS_NAMESPACE as r, BUSY_ENTER_BEHAVIORS as t };
@@ -0,0 +1,19 @@
1
+ import z from "@deepseek-ai/schemastery";
2
+ //#region ../../../vendor/deepseek-harness/packages/client/ui-conversation/src/submission-settings.d.ts
3
+ /** Settings namespace owned by the conversation plugin. */
4
+ declare const CONVERSATION_SETTINGS_NAMESPACE = "ui-conversation";
5
+ /** Field carrying the delivery mode for plain Enter while an agent is busy. */
6
+ declare const BUSY_ENTER_FIELD = "busyEnter";
7
+ /** Busy-Enter behaviors accepted at settings and input boundaries. */
8
+ declare const BUSY_ENTER_BEHAVIORS: readonly ['queue', 'steer'];
9
+ /** Configurable meaning of plain Enter while the addressed agent is busy. */
10
+ type BusyEnterBehavior = typeof BUSY_ENTER_BEHAVIORS[number];
11
+ /** Default preserves Enter-as-Queue for running conversations. */
12
+ declare const DEFAULT_BUSY_ENTER_BEHAVIOR: BusyEnterBehavior;
13
+ /** Durable conversation section shared by the Host schema and the browser scope. */
14
+ interface ConversationSettings {
15
+ /** Delivery mode for plain Enter while the addressed agent is busy. */
16
+ busyEnter: BusyEnterBehavior;
17
+ }
18
+ //#endregion
19
+ export { ConversationSettings as a, CONVERSATION_SETTINGS_NAMESPACE as i, BUSY_ENTER_FIELD as n, DEFAULT_BUSY_ENTER_BEHAVIOR as o, BusyEnterBehavior as r, BUSY_ENTER_BEHAVIORS as t };
@@ -0,0 +1,19 @@
1
+ import "@deepseek-ai/schemastery";
2
+ //#region ../../../vendor/deepseek-harness/packages/client/ui-conversation/src/submission-settings.d.ts
3
+ /** Settings namespace owned by the conversation plugin. */
4
+ declare const CONVERSATION_SETTINGS_NAMESPACE = "ui-conversation";
5
+ /** Field carrying the delivery mode for plain Enter while an agent is busy. */
6
+ declare const BUSY_ENTER_FIELD = "busyEnter";
7
+ /** Busy-Enter behaviors accepted at settings and input boundaries. */
8
+ declare const BUSY_ENTER_BEHAVIORS: readonly ['queue', 'steer'];
9
+ /** Configurable meaning of plain Enter while the addressed agent is busy. */
10
+ type BusyEnterBehavior = typeof BUSY_ENTER_BEHAVIORS[number];
11
+ /** Default preserves Enter-as-Queue for running conversations. */
12
+ declare const DEFAULT_BUSY_ENTER_BEHAVIOR: BusyEnterBehavior;
13
+ /** Durable conversation section shared by the Host schema and the browser scope. */
14
+ interface ConversationSettings {
15
+ /** Delivery mode for plain Enter while the addressed agent is busy. */
16
+ busyEnter: BusyEnterBehavior;
17
+ }
18
+ //#endregion
19
+ export { ConversationSettings as a, CONVERSATION_SETTINGS_NAMESPACE as i, BUSY_ENTER_FIELD as n, DEFAULT_BUSY_ENTER_BEHAVIOR as o, BusyEnterBehavior as r, BUSY_ENTER_BEHAVIORS as t };
package/package.json ADDED
@@ -0,0 +1,105 @@
1
+ {
2
+ "name": "@morlay/dsh-client-ui-conversation",
3
+ "version": "0.0.2-alpha.0",
4
+ "description": "Thin-shell fork of @deepseek-ai/dsh-client-ui-conversation: keeps only the files we changed, the rest is imported from the vendored upstream source and inlined at build time",
5
+ "keywords": [
6
+ "fork"
7
+ ],
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/morlay/dsh-plugin.git"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "type": "module",
17
+ "exports": {
18
+ ".": "./dist/index.mjs",
19
+ "./package.json": "./package.json",
20
+ "./client": {
21
+ "types": "./dist/client.d.cts",
22
+ "default": "./dist/client.cjs"
23
+ }
24
+ },
25
+ "dependencies": {
26
+ "@deepseek-ai/schemastery": "^3.18.2"
27
+ },
28
+ "devDependencies": {
29
+ "@deepseek-ai/cordis": "^4.0.2",
30
+ "@deepseek-ai/dsh-agent": "^0.1.6-alpha.2",
31
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.6-alpha.2",
32
+ "@deepseek-ai/dsh-api-workspace-controller": "^0.1.6-alpha.2",
33
+ "@deepseek-ai/dsh-attachment": "^0.1.6-alpha.2",
34
+ "@deepseek-ai/dsh-brand": "^0.1.6-alpha.2",
35
+ "@deepseek-ai/dsh-client-file-upload": "^0.1.6-alpha.2",
36
+ "@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.2",
37
+ "@deepseek-ai/dsh-client-store": "^0.1.6-alpha.2",
38
+ "@deepseek-ai/dsh-client-ui-layout": "^0.1.6-alpha.2",
39
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.6-alpha.2",
40
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.2",
41
+ "@deepseek-ai/dsh-client-ui-session": "^0.1.6-alpha.2",
42
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.6-alpha.2",
43
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.6-alpha.2",
44
+ "@deepseek-ai/dsh-client-ui-workspace": "^0.1.6-alpha.2",
45
+ "@deepseek-ai/dsh-commands": "^0.1.6-alpha.2",
46
+ "@deepseek-ai/dsh-goal": "^0.1.6-alpha.2",
47
+ "@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
48
+ "@deepseek-ai/dsh-llm-retry": "^0.1.6-alpha.2",
49
+ "@deepseek-ai/dsh-plan-mode": "^0.1.6-alpha.2",
50
+ "@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
51
+ "@deepseek-ai/dsh-settings": "^0.1.6-alpha.2",
52
+ "@deepseek-ai/dsh-token-meter": "^0.1.6-alpha.2",
53
+ "@deepseek-ai/dsh-tool-todo": "^0.1.6-alpha.2",
54
+ "@deepseek-ai/dsh-util-crypto": "^0.1.6-alpha.2",
55
+ "@deepseek-ai/dsh-util-values": "^0.1.6-alpha.2",
56
+ "@deepseek-ai/dsh-util-workspace-path": "^0.1.6-alpha.2",
57
+ "@deepseek-ai/dsh-workspace": "^0.1.6-alpha.2",
58
+ "@lexical/history": "^0.49.0",
59
+ "@lexical/plain-text": "^0.49.0",
60
+ "@lexical/text": "^0.49.0",
61
+ "@lexical/utils": "^0.49.0",
62
+ "@morlay/dsh-client-ui-primitives": "^0.0.2-alpha.0",
63
+ "@types/react": "~18.3.1",
64
+ "@types/react-dom": "~18.3.0",
65
+ "clsx": "^2.0.0",
66
+ "lexical": "^0.49.0",
67
+ "react": "^18.2.0",
68
+ "react-dom": "^18.2.0"
69
+ },
70
+ "peerDependencies": {
71
+ "@deepseek-ai/cordis": "^4.0.2",
72
+ "@morlay/dsh-client-ui-primitives": "^0.0.2-alpha.0"
73
+ },
74
+ "dsh": {
75
+ "client": {
76
+ "inject": [
77
+ "@deepseek-ai/dsh-api-session-controller",
78
+ "@deepseek-ai/dsh-client-file-upload",
79
+ "@deepseek-ai/dsh-client-locale",
80
+ "@deepseek-ai/dsh-client-ui-layout",
81
+ "@deepseek-ai/dsh-client-ui-renderer",
82
+ "@deepseek-ai/dsh-client-ui-session",
83
+ "@deepseek-ai/dsh-client-ui-settings",
84
+ "@deepseek-ai/dsh-client-ui-workspace",
85
+ "@morlay/dsh-client-ui-primitives"
86
+ ],
87
+ "platform": "web"
88
+ }
89
+ },
90
+ "inlinedDependencies": {
91
+ "@lexical/clipboard": "0.49.0",
92
+ "@lexical/extension": "0.49.0",
93
+ "@lexical/history": "0.49.0",
94
+ "@lexical/html": "0.49.0",
95
+ "@lexical/plain-text": "0.49.0",
96
+ "@lexical/selection": "0.49.0",
97
+ "@lexical/text": "0.49.0",
98
+ "@lexical/utils": "0.49.0",
99
+ "clsx": "2.1.1",
100
+ "lexical": "0.49.0"
101
+ },
102
+ "scripts": {
103
+ "build": "pnpm exec tsdown"
104
+ }
105
+ }