@ahggg/dsh-side-chat 0.1.0-alpha.1

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 (135) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +114 -0
  3. package/README.zh-CN.md +114 -0
  4. package/cordis.patch.yml +3 -0
  5. package/lib/client/apply.d.ts +5 -0
  6. package/lib/client/apply.d.ts.map +1 -0
  7. package/lib/client/apply.js +35 -0
  8. package/lib/client/apply.js.map +1 -0
  9. package/lib/client/contracts.d.ts +76 -0
  10. package/lib/client/contracts.d.ts.map +1 -0
  11. package/lib/client/contracts.js +2 -0
  12. package/lib/client/contracts.js.map +1 -0
  13. package/lib/client/index.d.ts +11 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +9 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/client/panel/SelectionQuote.d.ts +10 -0
  18. package/lib/client/panel/SelectionQuote.d.ts.map +1 -0
  19. package/lib/client/panel/SelectionQuote.js +8 -0
  20. package/lib/client/panel/SelectionQuote.js.map +1 -0
  21. package/lib/client/panel/SendIcon.d.ts +3 -0
  22. package/lib/client/panel/SendIcon.d.ts.map +1 -0
  23. package/lib/client/panel/SendIcon.js +6 -0
  24. package/lib/client/panel/SendIcon.js.map +1 -0
  25. package/lib/client/panel/SideChatBody.d.ts +6 -0
  26. package/lib/client/panel/SideChatBody.d.ts.map +1 -0
  27. package/lib/client/panel/SideChatBody.js +6 -0
  28. package/lib/client/panel/SideChatBody.js.map +1 -0
  29. package/lib/client/panel/SideChatErrorState.d.ts +9 -0
  30. package/lib/client/panel/SideChatErrorState.d.ts.map +1 -0
  31. package/lib/client/panel/SideChatErrorState.js +6 -0
  32. package/lib/client/panel/SideChatErrorState.js.map +1 -0
  33. package/lib/client/panel/SideChatHeader.d.ts +9 -0
  34. package/lib/client/panel/SideChatHeader.d.ts.map +1 -0
  35. package/lib/client/panel/SideChatHeader.js +5 -0
  36. package/lib/client/panel/SideChatHeader.js.map +1 -0
  37. package/lib/client/panel/SideChatPanel.d.ts +17 -0
  38. package/lib/client/panel/SideChatPanel.d.ts.map +1 -0
  39. package/lib/client/panel/SideChatPanel.js +35 -0
  40. package/lib/client/panel/SideChatPanel.js.map +1 -0
  41. package/lib/client/panel/messages.d.ts +22 -0
  42. package/lib/client/panel/messages.d.ts.map +1 -0
  43. package/lib/client/panel/messages.js +43 -0
  44. package/lib/client/panel/messages.js.map +1 -0
  45. package/lib/client/panel/use-auto-growing-textarea.d.ts +3 -0
  46. package/lib/client/panel/use-auto-growing-textarea.d.ts.map +1 -0
  47. package/lib/client/panel/use-auto-growing-textarea.js +21 -0
  48. package/lib/client/panel/use-auto-growing-textarea.js.map +1 -0
  49. package/lib/client/parent-composer/add-to-conversation.d.ts +4 -0
  50. package/lib/client/parent-composer/add-to-conversation.d.ts.map +1 -0
  51. package/lib/client/parent-composer/add-to-conversation.js +25 -0
  52. package/lib/client/parent-composer/add-to-conversation.js.map +1 -0
  53. package/lib/client/rc6/ArchivedConversation.d.ts +13 -0
  54. package/lib/client/rc6/ArchivedConversation.d.ts.map +1 -0
  55. package/lib/client/rc6/ArchivedConversation.js +170 -0
  56. package/lib/client/rc6/ArchivedConversation.js.map +1 -0
  57. package/lib/client/rc6/Rc6SideChatOverlay.d.ts +8 -0
  58. package/lib/client/rc6/Rc6SideChatOverlay.d.ts.map +1 -0
  59. package/lib/client/rc6/Rc6SideChatOverlay.js +136 -0
  60. package/lib/client/rc6/Rc6SideChatOverlay.js.map +1 -0
  61. package/lib/client/rc6/context.d.ts +10 -0
  62. package/lib/client/rc6/context.d.ts.map +1 -0
  63. package/lib/client/rc6/context.js +2 -0
  64. package/lib/client/rc6/context.js.map +1 -0
  65. package/lib/client/rc6/remote-adapter.d.ts +7 -0
  66. package/lib/client/rc6/remote-adapter.d.ts.map +1 -0
  67. package/lib/client/rc6/remote-adapter.js +29 -0
  68. package/lib/client/rc6/remote-adapter.js.map +1 -0
  69. package/lib/client/rc6/sessions-adapter.d.ts +34 -0
  70. package/lib/client/rc6/sessions-adapter.d.ts.map +1 -0
  71. package/lib/client/rc6/sessions-adapter.js +252 -0
  72. package/lib/client/rc6/sessions-adapter.js.map +1 -0
  73. package/lib/client/selection/SelectionActions.d.ts +9 -0
  74. package/lib/client/selection/SelectionActions.d.ts.map +1 -0
  75. package/lib/client/selection/SelectionActions.js +20 -0
  76. package/lib/client/selection/SelectionActions.js.map +1 -0
  77. package/lib/client/selection/selection-controller.d.ts +26 -0
  78. package/lib/client/selection/selection-controller.d.ts.map +1 -0
  79. package/lib/client/selection/selection-controller.js +111 -0
  80. package/lib/client/selection/selection-controller.js.map +1 -0
  81. package/lib/client/selection/selection-limits.d.ts +7 -0
  82. package/lib/client/selection/selection-limits.d.ts.map +1 -0
  83. package/lib/client/selection/selection-limits.js +19 -0
  84. package/lib/client/selection/selection-limits.js.map +1 -0
  85. package/lib/client/selection/selection-normalizer.d.ts +16 -0
  86. package/lib/client/selection/selection-normalizer.d.ts.map +1 -0
  87. package/lib/client/selection/selection-normalizer.js +48 -0
  88. package/lib/client/selection/selection-normalizer.js.map +1 -0
  89. package/lib/client/side-chat-controller.d.ts +55 -0
  90. package/lib/client/side-chat-controller.d.ts.map +1 -0
  91. package/lib/client/side-chat-controller.js +379 -0
  92. package/lib/client/side-chat-controller.js.map +1 -0
  93. package/lib/client.js +5988 -0
  94. package/lib/client.js.map +1 -0
  95. package/lib/host/archived-fork-service.d.ts +27 -0
  96. package/lib/host/archived-fork-service.d.ts.map +1 -0
  97. package/lib/host/archived-fork-service.js +186 -0
  98. package/lib/host/archived-fork-service.js.map +1 -0
  99. package/lib/host/index.d.ts +2 -0
  100. package/lib/host/index.d.ts.map +1 -0
  101. package/lib/host/index.js +2 -0
  102. package/lib/host/index.js.map +1 -0
  103. package/lib/index.d.ts +23 -0
  104. package/lib/index.d.ts.map +1 -0
  105. package/lib/index.js +24 -0
  106. package/lib/index.js.map +1 -0
  107. package/lib/remote.d.ts +22 -0
  108. package/lib/remote.d.ts.map +1 -0
  109. package/lib/remote.js +8 -0
  110. package/lib/remote.js.map +1 -0
  111. package/lib/shared/archived-wire.d.ts +100 -0
  112. package/lib/shared/archived-wire.d.ts.map +1 -0
  113. package/lib/shared/archived-wire.js +31 -0
  114. package/lib/shared/archived-wire.js.map +1 -0
  115. package/lib/shared/constants.d.ts +16 -0
  116. package/lib/shared/constants.d.ts.map +1 -0
  117. package/lib/shared/constants.js +16 -0
  118. package/lib/shared/constants.js.map +1 -0
  119. package/lib/shared/contracts.d.ts +92 -0
  120. package/lib/shared/contracts.d.ts.map +1 -0
  121. package/lib/shared/contracts.js +4 -0
  122. package/lib/shared/contracts.js.map +1 -0
  123. package/lib/shared/error-codes.d.ts +4 -0
  124. package/lib/shared/error-codes.d.ts.map +1 -0
  125. package/lib/shared/error-codes.js +25 -0
  126. package/lib/shared/error-codes.js.map +1 -0
  127. package/lib/shared/observable.d.ts +22 -0
  128. package/lib/shared/observable.d.ts.map +1 -0
  129. package/lib/shared/observable.js +40 -0
  130. package/lib/shared/observable.js.map +1 -0
  131. package/lib/typert.d.ts +80 -0
  132. package/lib/typert.d.ts.map +1 -0
  133. package/lib/typert.js +40 -0
  134. package/lib/typert.js.map +1 -0
  135. package/package.json +126 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/shared/contracts.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,SAAS,CAAC,KAAa;IACrC,OAAO,KAAkB,CAAA;AAC3B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const SIDE_CHAT_ERROR_CODES: readonly ["selection_empty", "selection_outside_conversation", "selection_not_model_visible", "selection_too_large", "selection_stale", "selection_crosses_unsupported_nodes", "parent_session_missing", "parent_session_not_ready", "fork_unavailable", "side_chat_already_open", "side_chat_not_found", "side_chat_open_failed", "side_chat_prompt_failed", "side_chat_interrupt_failed", "side_chat_destroy_failed", "transport_error", "invalid_request", "internal_error"];
2
+ export type SideChatErrorCode = (typeof SIDE_CHAT_ERROR_CODES)[number];
3
+ export declare function isSideChatErrorCode(value: unknown): value is SideChatErrorCode;
4
+ //# sourceMappingURL=error-codes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../src/shared/error-codes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,idAmBxB,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEtE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAG9E"}
@@ -0,0 +1,25 @@
1
+ export const SIDE_CHAT_ERROR_CODES = [
2
+ 'selection_empty',
3
+ 'selection_outside_conversation',
4
+ 'selection_not_model_visible',
5
+ 'selection_too_large',
6
+ 'selection_stale',
7
+ 'selection_crosses_unsupported_nodes',
8
+ 'parent_session_missing',
9
+ 'parent_session_not_ready',
10
+ 'fork_unavailable',
11
+ 'side_chat_already_open',
12
+ 'side_chat_not_found',
13
+ 'side_chat_open_failed',
14
+ 'side_chat_prompt_failed',
15
+ 'side_chat_interrupt_failed',
16
+ 'side_chat_destroy_failed',
17
+ 'transport_error',
18
+ 'invalid_request',
19
+ 'internal_error',
20
+ ];
21
+ export function isSideChatErrorCode(value) {
22
+ return typeof value === 'string'
23
+ && SIDE_CHAT_ERROR_CODES.includes(value);
24
+ }
25
+ //# sourceMappingURL=error-codes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../src/shared/error-codes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,iBAAiB;IACjB,gCAAgC;IAChC,6BAA6B;IAC7B,qBAAqB;IACrB,iBAAiB;IACjB,qCAAqC;IACrC,wBAAwB;IACxB,0BAA0B;IAC1B,kBAAkB;IAClB,wBAAwB;IACxB,qBAAqB;IACrB,uBAAuB;IACvB,yBAAyB;IACzB,4BAA4B;IAC5B,0BAA0B;IAC1B,iBAAiB;IACjB,iBAAiB;IACjB,gBAAgB;CACR,CAAA;AAIV,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,OAAO,OAAO,KAAK,KAAK,QAAQ;WAC1B,qBAA2C,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AACnE,CAAC"}
@@ -0,0 +1,22 @@
1
+ /** Minimal observable compatible with React's external-store adapter. */
2
+ export interface HostObservable<T> {
3
+ getSnapshot(): T;
4
+ subscribe(listener: () => void): () => void;
5
+ }
6
+ /** Immutable-value observable with contained subscriber failures. */
7
+ export declare class ObservableValue<T> implements HostObservable<T> {
8
+ private value;
9
+ private readonly label;
10
+ private readonly listeners;
11
+ private disposed;
12
+ constructor(value: T, label: string);
13
+ /** Return the current stable snapshot. */
14
+ getSnapshot: () => T;
15
+ /** Subscribe until the returned disposer is called. */
16
+ subscribe: (listener: () => void) => (() => void);
17
+ /** Replace the snapshot and notify every surviving listener. */
18
+ publish(value: T): void;
19
+ /** Drop listeners and refuse later publication. */
20
+ dispose(): void;
21
+ }
22
+ //# sourceMappingURL=observable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../src/shared/observable.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,WAAW,IAAI,CAAC,CAAA;IAChB,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;CAC5C;AAED,qEAAqE;AACrE,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,cAAc,CAAC,CAAC,CAAC;IAI9C,OAAO,CAAC,KAAK;IAAK,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHpD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;IAClD,OAAO,CAAC,QAAQ,CAAQ;gBAEJ,KAAK,EAAE,CAAC,EAAmB,KAAK,EAAE,MAAM;IAE5D,0CAA0C;IAC1C,WAAW,QAAO,CAAC,CAAc;IAEjC,uDAAuD;IACvD,SAAS,GAAI,UAAU,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAI/C;IAED,gEAAgE;IAChE,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAYvB,mDAAmD;IACnD,OAAO,IAAI,IAAI;CAIhB"}
@@ -0,0 +1,40 @@
1
+ /** Immutable-value observable with contained subscriber failures. */
2
+ export class ObservableValue {
3
+ value;
4
+ label;
5
+ listeners = new Set();
6
+ disposed = false;
7
+ constructor(value, label) {
8
+ this.value = value;
9
+ this.label = label;
10
+ }
11
+ /** Return the current stable snapshot. */
12
+ getSnapshot = () => this.value;
13
+ /** Subscribe until the returned disposer is called. */
14
+ subscribe = (listener) => {
15
+ if (this.disposed)
16
+ return () => { };
17
+ this.listeners.add(listener);
18
+ return () => { this.listeners.delete(listener); };
19
+ };
20
+ /** Replace the snapshot and notify every surviving listener. */
21
+ publish(value) {
22
+ if (this.disposed)
23
+ return;
24
+ this.value = value;
25
+ for (const listener of this.listeners) {
26
+ try {
27
+ listener();
28
+ }
29
+ catch (error) {
30
+ console.error(`[${this.label}] subscriber threw`, error);
31
+ }
32
+ }
33
+ }
34
+ /** Drop listeners and refuse later publication. */
35
+ dispose() {
36
+ this.disposed = true;
37
+ this.listeners.clear();
38
+ }
39
+ }
40
+ //# sourceMappingURL=observable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observable.js","sourceRoot":"","sources":["../../src/shared/observable.ts"],"names":[],"mappings":"AAMA,qEAAqE;AACrE,MAAM,OAAO,eAAe;IAIN;IAA2B;IAH9B,SAAS,GAAG,IAAI,GAAG,EAAc,CAAA;IAC1C,QAAQ,GAAG,KAAK,CAAA;IAExB,YAAoB,KAAQ,EAAmB,KAAa;QAAxC,UAAK,GAAL,KAAK,CAAG;QAAmB,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAEhE,0CAA0C;IAC1C,WAAW,GAAG,GAAM,EAAE,CAAC,IAAI,CAAC,KAAK,CAAA;IAEjC,uDAAuD;IACvD,SAAS,GAAG,CAAC,QAAoB,EAAgB,EAAE;QACjD,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,GAAG,EAAE,GAAE,CAAC,CAAA;QAClC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QAC5B,OAAO,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA,CAAC,CAAC,CAAA;IAClD,CAAC,CAAA;IAED,gEAAgE;IAChE,OAAO,CAAC,KAAQ;QACd,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAM;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,IAAI,CAAC;gBACH,QAAQ,EAAE,CAAA;YACZ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,oBAAoB,EAAE,KAAK,CAAC,CAAA;YAC1D,CAAC;QACH,CAAC;IACH,CAAC;IAED,mDAAmD;IACnD,OAAO;QACL,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;QACpB,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAA;IACxB,CAAC;CACF"}
@@ -0,0 +1,80 @@
1
+ export declare const ARCHIVED_INVOCATIONS: {
2
+ id: string;
3
+ service: string;
4
+ namespace: string;
5
+ method: "create" | "close";
6
+ implementation: string;
7
+ invocation: {
8
+ kind: "direct";
9
+ };
10
+ parameters: {
11
+ name: string;
12
+ wire: string;
13
+ source: "json";
14
+ codec: {
15
+ mode: "strict";
16
+ typeSymbol: string;
17
+ schema: {
18
+ parse(value: unknown): unknown;
19
+ };
20
+ };
21
+ }[];
22
+ result: {
23
+ mode: "strict";
24
+ typeSymbol: string;
25
+ schema: {
26
+ parse(value: unknown): unknown;
27
+ };
28
+ };
29
+ sourceLocation: {
30
+ file: string;
31
+ line: number;
32
+ column: number;
33
+ };
34
+ }[];
35
+ export declare const TYPERT: {
36
+ package: string;
37
+ face: string;
38
+ schemas: never[];
39
+ model: {
40
+ services: never[];
41
+ events: never[];
42
+ objects: never[];
43
+ };
44
+ invocations: {
45
+ id: string;
46
+ service: string;
47
+ namespace: string;
48
+ method: "create" | "close";
49
+ implementation: string;
50
+ invocation: {
51
+ kind: "direct";
52
+ };
53
+ parameters: {
54
+ name: string;
55
+ wire: string;
56
+ source: "json";
57
+ codec: {
58
+ mode: "strict";
59
+ typeSymbol: string;
60
+ schema: {
61
+ parse(value: unknown): unknown;
62
+ };
63
+ };
64
+ }[];
65
+ result: {
66
+ mode: "strict";
67
+ typeSymbol: string;
68
+ schema: {
69
+ parse(value: unknown): unknown;
70
+ };
71
+ };
72
+ sourceLocation: {
73
+ file: string;
74
+ line: number;
75
+ column: number;
76
+ };
77
+ }[];
78
+ };
79
+ export default TYPERT;
80
+ //# sourceMappingURL=typert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typert.d.ts","sourceRoot":"","sources":["../src/typert.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;6BA7BC,OAAO,GAAG,OAAO;;;;;;;;yBACpB,OAAO,GAAG,OAAO;;;;;;;;GA+B/C,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;iCAlCe,OAAO,GAAG,OAAO;;;;;;;;6BACpB,OAAO,GAAG,OAAO;;;;;;;;;CAuC/C,CAAA;AAED,eAAe,MAAM,CAAA"}
package/lib/typert.js ADDED
@@ -0,0 +1,40 @@
1
+ import { archivedCloseRequestSchema, archivedCloseResultSchema, archivedCreateRequestSchema, archivedCreateResultSchema, } from './shared/archived-wire.js';
2
+ function invocation(method, implementation, parameterSchema, resultSchema) {
3
+ return {
4
+ id: `@ahggg/dsh-side-chat#sideChatArchived/${method}`,
5
+ service: 'sideChat',
6
+ namespace: 'sideChatArchived',
7
+ method,
8
+ implementation,
9
+ invocation: { kind: 'direct' },
10
+ parameters: [{
11
+ name: 'request',
12
+ wire: 'request',
13
+ source: 'json',
14
+ codec: {
15
+ mode: 'strict',
16
+ typeSymbol: `@ahggg/dsh-side-chat/remote#${method === 'create' ? 'Create' : 'Close'}SideChatRequest`,
17
+ schema: parameterSchema,
18
+ },
19
+ }],
20
+ result: {
21
+ mode: 'strict',
22
+ typeSymbol: `@ahggg/dsh-side-chat/remote#Archived${method === 'create' ? 'Create' : 'Close'}Result`,
23
+ schema: resultSchema,
24
+ },
25
+ sourceLocation: { file: 'src/index.ts', line: 1, column: 1 },
26
+ };
27
+ }
28
+ export const ARCHIVED_INVOCATIONS = [
29
+ invocation('create', 'createArchived', archivedCreateRequestSchema, archivedCreateResultSchema),
30
+ invocation('close', 'closeArchived', archivedCloseRequestSchema, archivedCloseResultSchema),
31
+ ];
32
+ export const TYPERT = {
33
+ package: '@ahggg/dsh-side-chat',
34
+ face: 'host',
35
+ schemas: [],
36
+ model: { services: [], events: [], objects: [] },
37
+ invocations: ARCHIVED_INVOCATIONS,
38
+ };
39
+ export default TYPERT;
40
+ //# sourceMappingURL=typert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typert.js","sourceRoot":"","sources":["../src/typert.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,2BAA2B,CAAA;AAElC,SAAS,UAAU,CACjB,MAA0B,EAC1B,cAAsB,EACtB,eAAmD,EACnD,YAAgD;IAEhD,OAAO;QACL,EAAE,EAAE,yCAAyC,MAAM,EAAE;QACrD,OAAO,EAAE,UAAU;QACnB,SAAS,EAAE,kBAAkB;QAC7B,MAAM;QACN,cAAc;QACd,UAAU,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE;QACvC,UAAU,EAAE,CAAC;gBACX,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,MAAe;gBACvB,KAAK,EAAE;oBACL,IAAI,EAAE,QAAiB;oBACvB,UAAU,EAAE,+BAA+B,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,iBAAiB;oBACpG,MAAM,EAAE,eAAe;iBACxB;aACF,CAAC;QACF,MAAM,EAAE;YACN,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE,uCAAuC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,QAAQ;YACnG,MAAM,EAAE,YAAY;SACrB;QACD,cAAc,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;KAC7D,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,UAAU,CAAC,QAAQ,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,0BAA0B,CAAC;IAC/F,UAAU,CAAC,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,yBAAyB,CAAC;CAC5F,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,EAAE,sBAAsB;IAC/B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAChD,WAAW,EAAE,oBAAoB;CAClC,CAAA;AAED,eAAe,MAAM,CAAA"}
package/package.json ADDED
@@ -0,0 +1,126 @@
1
+ {
2
+ "name": "@ahggg/dsh-side-chat",
3
+ "version": "0.1.0-alpha.1",
4
+ "description": "Codex-style side conversations for DeepSeek Harness",
5
+ "keywords": [
6
+ "deepseek-harness",
7
+ "dsh",
8
+ "side-chat"
9
+ ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/AHGGG/dsh-side-chat.git"
13
+ },
14
+ "homepage": "https://github.com/AHGGG/dsh-side-chat#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/AHGGG/dsh-side-chat/issues"
17
+ },
18
+ "publishConfig": {
19
+ "access": "public",
20
+ "tag": "alpha"
21
+ },
22
+ "type": "module",
23
+ "main": "lib/index.js",
24
+ "types": "lib/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./lib/index.d.ts",
28
+ "default": "./lib/index.js"
29
+ },
30
+ "./client": {
31
+ "types": "./lib/client/index.d.ts",
32
+ "default": "./lib/client.js"
33
+ },
34
+ "./remote": {
35
+ "types": "./lib/remote.d.ts",
36
+ "default": "./lib/remote.js"
37
+ },
38
+ "./typert": {
39
+ "types": "./lib/typert.d.ts",
40
+ "default": "./lib/typert.js"
41
+ },
42
+ "./package.json": "./package.json"
43
+ },
44
+ "files": [
45
+ "lib",
46
+ "cordis.patch.yml",
47
+ "README.md",
48
+ "README.zh-CN.md",
49
+ "LICENSE"
50
+ ],
51
+ "dsh": {
52
+ "bundle": {
53
+ "patch": "./cordis.patch.yml"
54
+ },
55
+ "client": {
56
+ "platform": "web",
57
+ "inject": [
58
+ "@deepseek-ai/dsh-client-runtime",
59
+ "@deepseek-ai/dsh-api-remotes",
60
+ "@deepseek-ai/dsh-client-ui-conversation",
61
+ "@deepseek-ai/dsh-client-ui-layout",
62
+ "@deepseek-ai/dsh-client-ui-slots"
63
+ ]
64
+ }
65
+ },
66
+ "engines": {
67
+ "node": "^22.19.0 || >=24.0.0"
68
+ },
69
+ "packageManager": "pnpm@11.7.0",
70
+ "scripts": {
71
+ "clean": "node scripts/clean.mjs",
72
+ "typecheck": "tsc --noEmit",
73
+ "lint": "oxlint src test scripts tsdown.config.ts",
74
+ "test": "vitest run",
75
+ "test:coverage": "vitest run --coverage",
76
+ "build": "npm run clean && tsc -p tsconfig.build.json && tsdown --config tsdown.config.ts",
77
+ "pack:verify": "npm run build && node scripts/verify-package.mjs",
78
+ "clean-profile:verify": "npm run build && node scripts/clean-profile-e2e.mjs",
79
+ "check": "npm run typecheck && npm run lint && npm run test && npm run pack:verify",
80
+ "prepack": "npm run build"
81
+ },
82
+ "peerDependencies": {
83
+ "@deepseek-ai/cordis": "4.0.1",
84
+ "@deepseek-ai/dsh-agent": "0.1.0-rc.6",
85
+ "@deepseek-ai/dsh-agent-presets": "0.1.0-rc.6",
86
+ "@deepseek-ai/dsh-api-remotes": "0.1.0-rc.6",
87
+ "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.6",
88
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.0-rc.6",
89
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6",
90
+ "@deepseek-ai/dsh-session": "0.1.0-rc.6",
91
+ "@deepseek-ai/dsh-typert-protocol": "0.1.0-rc.6",
92
+ "@deepseek-ai/dsh-user-questions": "0.1.0-rc.6",
93
+ "@deepseek-ai/dsh-workspace": "0.1.0-rc.6",
94
+ "react": ">=18.2.0 <20.0.0"
95
+ },
96
+ "dependencies": {
97
+ "@deepseek-ai/cordis": "4.0.1",
98
+ "zod": "4.4.3"
99
+ },
100
+ "devDependencies": {
101
+ "@deepseek-ai/dsh-agent": "0.1.0-rc.6",
102
+ "@deepseek-ai/dsh-agent-presets": "0.1.0-rc.6",
103
+ "@deepseek-ai/dsh-api-remotes": "0.1.0-rc.6",
104
+ "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.6",
105
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.0-rc.6",
106
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.6",
107
+ "@deepseek-ai/dsh-session": "0.1.0-rc.6",
108
+ "@deepseek-ai/dsh-typert-protocol": "0.1.0-rc.6",
109
+ "@deepseek-ai/dsh-user-questions": "0.1.0-rc.6",
110
+ "@deepseek-ai/dsh-workspace": "0.1.0-rc.6",
111
+ "@testing-library/jest-dom": "6.9.1",
112
+ "@testing-library/react": "16.3.2",
113
+ "@types/node": "22.20.0",
114
+ "@types/react": "18.3.28",
115
+ "@types/react-dom": "18.3.7",
116
+ "@vitest/coverage-v8": "4.1.8",
117
+ "jsdom": "29.1.1",
118
+ "oxlint": "1.76.0",
119
+ "react": "18.3.1",
120
+ "react-dom": "18.3.1",
121
+ "tsdown": "0.22.14",
122
+ "typescript": "6.0.3",
123
+ "vitest": "4.1.8"
124
+ },
125
+ "license": "MIT"
126
+ }