@agentscope-ai/chat 1.1.37 → 1.1.38

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 (143) hide show
  1. package/bin/cli.js +4 -8
  2. package/bin/starter_webui.zip +0 -0
  3. package/components/AgentScopeRuntimeWebUI/index.tsx +2 -2
  4. package/components/AgentScopeRuntimeWebUI/starter/sessionApi/index.ts +1 -1
  5. package/components/index.ts +1 -1
  6. package/lib/AgentScopeRuntimeWebUI/index.d.ts +2 -2
  7. package/lib/AgentScopeRuntimeWebUI/index.js +2 -2
  8. package/lib/AgentScopeRuntimeWebUI/starter/sessionApi/index.d.ts +1 -1
  9. package/lib/index.d.ts +1 -1
  10. package/lib/index.js +1 -1
  11. package/package.json +2 -2
  12. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Request/Builder.tsx +0 -0
  13. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Request/Card.tsx +0 -0
  14. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Actions.tsx +0 -0
  15. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Builder.tsx +0 -0
  16. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Card.tsx +0 -0
  17. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Error.tsx +0 -0
  18. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Message.tsx +0 -0
  19. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Reasoning.tsx +0 -0
  20. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Tool.tsx +0 -0
  21. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/index.tsx +0 -0
  22. /package/components/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/types.tsx +0 -0
  23. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/Input/index.tsx +0 -0
  24. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/Input/useAttachments.tsx +0 -0
  25. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/MessageList/index.tsx +0 -0
  26. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/Welcome/index.tsx +0 -0
  27. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/Welcome/styles.ts +0 -0
  28. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/index.tsx +0 -0
  29. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatController.tsx +0 -0
  30. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatMessageHandler.tsx +0 -0
  31. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatRequest.tsx +0 -0
  32. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatSessionHandler.tsx +0 -0
  33. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/index.tsx +0 -0
  34. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Chat/styles.tsx +0 -0
  35. /package/components/AgentScopeRuntimeWebUI/{lib → core}/ChatAnywhere/ComposedProvider.tsx +0 -0
  36. /package/components/AgentScopeRuntimeWebUI/{lib → core}/ChatAnywhere/index.tsx +0 -0
  37. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereControl.tsx +0 -0
  38. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereInputContext.tsx +0 -0
  39. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereLayoutContext.tsx +0 -0
  40. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereMessagesContext.tsx +0 -0
  41. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereOptionsContext.tsx +0 -0
  42. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereSessionsContext.tsx +0 -0
  43. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Context/useChatAnywhereEventEmitter.tsx +0 -0
  44. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Header/index.tsx +0 -0
  45. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Header/styles.ts +0 -0
  46. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Layout/index.tsx +0 -0
  47. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Layout/styles.tsx +0 -0
  48. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Sessions/index.tsx +0 -0
  49. /package/components/AgentScopeRuntimeWebUI/{lib → core}/Sessions/styles.tsx +0 -0
  50. /package/components/AgentScopeRuntimeWebUI/{lib → core}/demo/OptionsPanel/FormItem.tsx +0 -0
  51. /package/components/AgentScopeRuntimeWebUI/{lib → core}/demo/OptionsPanel/OptionsEditor.tsx +0 -0
  52. /package/components/AgentScopeRuntimeWebUI/{lib → core}/demo/OptionsPanel/defaultConfig.ts +0 -0
  53. /package/components/AgentScopeRuntimeWebUI/{lib → core}/demo/OptionsPanel/index.tsx +0 -0
  54. /package/components/AgentScopeRuntimeWebUI/{lib → core}/demo/index.tsx +0 -0
  55. /package/components/AgentScopeRuntimeWebUI/{lib → core}/demo/sessionApi/index.ts +0 -0
  56. /package/components/AgentScopeRuntimeWebUI/{lib → core}/types/IChatAnywhere.ts +0 -0
  57. /package/components/AgentScopeRuntimeWebUI/{lib → core}/types/IMessages.tsx +0 -0
  58. /package/components/AgentScopeRuntimeWebUI/{lib → core}/types/ISessions.tsx +0 -0
  59. /package/components/AgentScopeRuntimeWebUI/{lib → core}/types/index.tsx +0 -0
  60. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Request/Builder.d.ts +0 -0
  61. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Request/Builder.js +0 -0
  62. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Request/Card.d.ts +0 -0
  63. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Request/Card.js +0 -0
  64. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Actions.d.ts +0 -0
  65. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Actions.js +0 -0
  66. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Builder.d.ts +0 -0
  67. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Builder.js +0 -0
  68. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Card.d.ts +0 -0
  69. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Card.js +0 -0
  70. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Error.d.ts +0 -0
  71. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Error.js +0 -0
  72. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Message.d.ts +0 -0
  73. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Message.js +0 -0
  74. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Reasoning.d.ts +0 -0
  75. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Reasoning.js +0 -0
  76. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Tool.d.ts +0 -0
  77. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/Response/Tool.js +0 -0
  78. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/index.d.ts +0 -0
  79. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/index.js +0 -0
  80. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/types.d.ts +0 -0
  81. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/AgentScopeRuntime/types.js +0 -0
  82. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/Input/index.d.ts +0 -0
  83. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/Input/index.js +0 -0
  84. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/Input/useAttachments.d.ts +0 -0
  85. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/Input/useAttachments.js +0 -0
  86. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/MessageList/index.d.ts +0 -0
  87. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/MessageList/index.js +0 -0
  88. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/Welcome/index.d.ts +0 -0
  89. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/Welcome/index.js +0 -0
  90. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/Welcome/styles.d.ts +0 -0
  91. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/Welcome/styles.js +0 -0
  92. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/index.d.ts +0 -0
  93. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/index.js +0 -0
  94. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatController.d.ts +0 -0
  95. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatController.js +0 -0
  96. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatMessageHandler.d.ts +0 -0
  97. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatMessageHandler.js +0 -0
  98. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatRequest.d.ts +0 -0
  99. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatRequest.js +0 -0
  100. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatSessionHandler.d.ts +0 -0
  101. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/hooks/useChatSessionHandler.js +0 -0
  102. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/index.d.ts +0 -0
  103. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/index.js +0 -0
  104. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/styles.d.ts +0 -0
  105. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Chat/styles.js +0 -0
  106. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/ChatAnywhere/ComposedProvider.d.ts +0 -0
  107. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/ChatAnywhere/ComposedProvider.js +0 -0
  108. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/ChatAnywhere/index.d.ts +0 -0
  109. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/ChatAnywhere/index.js +0 -0
  110. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereControl.d.ts +0 -0
  111. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereControl.js +0 -0
  112. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereInputContext.d.ts +0 -0
  113. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereInputContext.js +0 -0
  114. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereLayoutContext.d.ts +0 -0
  115. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereLayoutContext.js +0 -0
  116. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereMessagesContext.d.ts +0 -0
  117. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereMessagesContext.js +0 -0
  118. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereOptionsContext.d.ts +0 -0
  119. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereOptionsContext.js +0 -0
  120. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereSessionsContext.d.ts +0 -0
  121. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/ChatAnywhereSessionsContext.js +0 -0
  122. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/useChatAnywhereEventEmitter.d.ts +0 -0
  123. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Context/useChatAnywhereEventEmitter.js +0 -0
  124. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Header/index.d.ts +0 -0
  125. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Header/index.js +0 -0
  126. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Header/styles.d.ts +0 -0
  127. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Header/styles.js +0 -0
  128. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Layout/index.d.ts +0 -0
  129. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Layout/index.js +0 -0
  130. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Layout/styles.d.ts +0 -0
  131. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Layout/styles.js +0 -0
  132. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Sessions/index.d.ts +0 -0
  133. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Sessions/index.js +0 -0
  134. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Sessions/styles.d.ts +0 -0
  135. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/Sessions/styles.js +0 -0
  136. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/types/IChatAnywhere.d.ts +0 -0
  137. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/types/IChatAnywhere.js +0 -0
  138. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/types/IMessages.d.ts +0 -0
  139. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/types/IMessages.js +0 -0
  140. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/types/ISessions.d.ts +0 -0
  141. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/types/ISessions.js +0 -0
  142. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/types/index.d.ts +0 -0
  143. /package/lib/AgentScopeRuntimeWebUI/{lib → core}/types/index.js +0 -0
package/bin/cli.js CHANGED
@@ -12,20 +12,16 @@ program
12
12
 
13
13
  const options = program.opts();
14
14
 
15
-
16
15
  async function startServer() {
17
16
  console.log('\n🚀 Starting AgentScope Runtime WebUI...\n');
18
17
 
19
18
  try {
20
-
21
-
22
- execSync('rm -rf agentscope-runtime')
23
- execSync('git clone https://github.com/lishengzxc/agentscope-runtime.git -b dev', {
24
- stdio: 'inherit',
25
- })
19
+ execSync(`unzip ${__dirname}/starter_webui.zip -d ${__dirname}`);
26
20
 
27
21
  execSync(
28
- `cd agentscope-runtime/web/starter_webui && npm install && BASE_URL=${options.url || 'BASE_URL'} TOKEN=${options.token || 'TOKEN'} npm run dev`,
22
+ `cd ${__dirname}/starter_webui && npm install && BASE_URL=${
23
+ options.url || 'BASE_URL'
24
+ } TOKEN=${options.token || 'TOKEN'} npm run dev`,
29
25
  {
30
26
  stdio: 'inherit',
31
27
  },
Binary file
@@ -1,3 +1,3 @@
1
- export { default } from './lib/ChatAnywhere';
1
+ export { default } from './core/ChatAnywhere';
2
2
  export { default as Demo } from './starter';
3
- export * from './lib/types';
3
+ export * from './core/types';
@@ -1,5 +1,5 @@
1
1
  import { IAgentScopeRuntimeWebUISessionAPI } from '@agentscope-ai/chat';
2
- import { IAgentScopeRuntimeWebUISession } from '../../lib/types/ISessions';
2
+ import { IAgentScopeRuntimeWebUISession } from '../../core/types/ISessions';
3
3
 
4
4
  class SessionApi implements IAgentScopeRuntimeWebUISessionAPI {
5
5
  private lsKey: string;
@@ -30,7 +30,7 @@ export type { ChatAnywhereRef, TMessage, TSession } from './ChatAnywhere';
30
30
  export * as DefaultCards from './DefaultCards';
31
31
 
32
32
  export { default as AgentScopeRuntimeWebUI } from './AgentScopeRuntimeWebUI';
33
- export * from './AgentScopeRuntimeWebUI/lib/types';
33
+ export * from './AgentScopeRuntimeWebUI/core/types';
34
34
 
35
35
  export {
36
36
  Accordion,
@@ -1,3 +1,3 @@
1
- export { default } from './lib/ChatAnywhere';
1
+ export { default } from './core/ChatAnywhere';
2
2
  export { default as Demo } from './starter';
3
- export * from './lib/types';
3
+ export * from './core/types';
@@ -1,3 +1,3 @@
1
- export { default } from "./lib/ChatAnywhere";
1
+ export { default } from "./core/ChatAnywhere";
2
2
  export { default as Demo } from "./starter";
3
- export * from "./lib/types";
3
+ export * from "./core/types";
@@ -1,5 +1,5 @@
1
1
  import { IAgentScopeRuntimeWebUISessionAPI } from "../../..";
2
- import { IAgentScopeRuntimeWebUISession } from '../../lib/types/ISessions';
2
+ import { IAgentScopeRuntimeWebUISession } from '../../core/types/ISessions';
3
3
  declare class SessionApi implements IAgentScopeRuntimeWebUISessionAPI {
4
4
  private lsKey;
5
5
  private sessionList;
package/lib/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export { default as ChatAnywhere, useChatAnywhere, useInput, useMessages, useSes
10
10
  export type { ChatAnywhereRef, TMessage, TSession } from './ChatAnywhere';
11
11
  export * as DefaultCards from './DefaultCards';
12
12
  export { default as AgentScopeRuntimeWebUI } from './AgentScopeRuntimeWebUI';
13
- export * from './AgentScopeRuntimeWebUI/lib/types';
13
+ export * from './AgentScopeRuntimeWebUI/core/types';
14
14
  export { Accordion, Accordion as Process, type IAccordionProps, type IAccordionProps as IProcess, } from './Accordion';
15
15
  export { default as DeepThink, default as DeepThinking, type IDeepThinking, } from './Accordion/DeepThinking';
16
16
  export { default as Attachments, type AttachmentsProps, type AttachmentsProps as IAttachmentsProps, } from './Attachments';
package/lib/index.js CHANGED
@@ -9,7 +9,7 @@ export { default as ChatAnywhere, useChatAnywhere, useInput, useMessages, useSes
9
9
  import * as _DefaultCards from "./DefaultCards";
10
10
  export { _DefaultCards as DefaultCards };
11
11
  export { default as AgentScopeRuntimeWebUI } from "./AgentScopeRuntimeWebUI";
12
- export * from "./AgentScopeRuntimeWebUI/lib/types";
12
+ export * from "./AgentScopeRuntimeWebUI/core/types";
13
13
  export { Accordion, Accordion as Process } from "./Accordion";
14
14
  export { default as DeepThink, default as DeepThinking } from "./Accordion/DeepThinking";
15
15
  export { default as Attachments } from "./Attachments";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/chat",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "description": "a free and open-source chat framework for building excellent LLM-powered chat experiences",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": [
@@ -31,7 +31,7 @@
31
31
  "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
32
32
  "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
33
33
  "llms:build": "LLM=true dumi build",
34
- "prepare": "husky install && dumi setup",
34
+ "prepare": "dumi setup",
35
35
  "src:build": "father build",
36
36
  "start": "npm run dev"
37
37
  },