@promptbook/remote-server 0.65.0-2 → 0.65.0-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.
Files changed (25) hide show
  1. package/esm/index.es.js +2462 -82
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/anthropic-claude.index.d.ts +6 -0
  4. package/esm/typings/src/_packages/core.index.d.ts +2 -0
  5. package/esm/typings/src/_packages/node.index.d.ts +0 -2
  6. package/esm/typings/src/_packages/remote-client.index.d.ts +2 -2
  7. package/esm/typings/src/_packages/types.index.d.ts +16 -2
  8. package/esm/typings/src/llm-providers/_common/config.d.ts +3 -3
  9. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +5 -3
  10. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +23 -2
  11. package/esm/typings/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +13 -0
  12. package/esm/typings/src/llm-providers/anthropic-claude/playground/playground.d.ts +1 -1
  13. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +3 -2
  14. package/esm/typings/src/llm-providers/remote/interfaces/Promptbook_Server_Error.d.ts +2 -2
  15. package/esm/typings/src/llm-providers/remote/interfaces/Promptbook_Server_Progress.d.ts +2 -2
  16. package/esm/typings/src/llm-providers/remote/interfaces/Promptbook_Server_Request.d.ts +14 -2
  17. package/esm/typings/src/llm-providers/remote/interfaces/RemoteLlmExecutionToolsOptions.d.ts +49 -0
  18. package/esm/typings/src/llm-providers/remote/interfaces/RemoteServerOptions.d.ts +23 -2
  19. package/esm/typings/src/llm-providers/remote/playground/playground.d.ts +2 -0
  20. package/esm/typings/src/llm-providers/remote/startRemoteServer.d.ts +2 -1
  21. package/esm/typings/src/types/typeAliases.d.ts +6 -0
  22. package/package.json +6 -2
  23. package/umd/index.umd.js +2464 -85
  24. package/umd/index.umd.js.map +1 -1
  25. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionToolsOptions.d.ts +0 -26
@@ -11,11 +11,12 @@ import type { RemoteServerOptions } from './interfaces/RemoteServerOptions';
11
11
  */
12
12
  export declare function startRemoteServer(options: RemoteServerOptions): IDestroyable;
13
13
  /**
14
- * TODO: [🍜] Add anonymous option
14
+ * TODO: [🍜] !!!!!! Add anonymous option
15
15
  * TODO: [⚖] Expose the collection to be able to connect to same collection via createCollectionFromUrl
16
16
  * TODO: Handle progress - support streaming
17
17
  * TODO: [🗯] Do not hang up immediately but wait until client closes OR timeout
18
18
  * TODO: [🗯] Timeout on chat to free up resources
19
19
  * TODO: [🃏] Pass here some security token to prevent malitious usage and/or DDoS
20
20
  * TODO: [0] Set unavailable models as undefined in `RemoteLlmExecutionTools` NOT throw error here
21
+ * TODO: Constrain anonymous mode for specific models / providers
21
22
  */
@@ -286,6 +286,12 @@ export type string_css_selector = string;
286
286
  * For example `"https://collboard.com/9SeSQTupmQHwuSrLi"`
287
287
  */
288
288
  export type string_url = string;
289
+ /**
290
+ * Semantic helper
291
+ *
292
+ * For example `"https://collboard.com"`
293
+ */
294
+ export type string_base_url = string;
289
295
  /**
290
296
  * Semantic helper
291
297
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-server",
3
- "version": "0.65.0-2",
3
+ "version": "0.65.0-4",
4
4
  "description": "Supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -47,11 +47,15 @@
47
47
  "module": "./esm/index.es.js",
48
48
  "typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
49
49
  "peerDependencies": {
50
- "@promptbook/core": "0.65.0-2"
50
+ "@promptbook/core": "0.65.0-4"
51
51
  },
52
52
  "dependencies": {
53
+ "@anthropic-ai/sdk": "0.21.1",
54
+ "@azure/openai": "1.0.0-beta.12",
53
55
  "colors": "1.4.0",
56
+ "openai": "4.46.1",
54
57
  "socket.io": "4.7.2",
58
+ "socket.io-client": "4.7.2",
55
59
  "spacetrim": "0.11.39"
56
60
  }
57
61
  }