@promptbook/remote-client
Advanced tools
Comparing version 0.65.0 to 0.66.0-0
@@ -7,3 +7,3 @@ import { io } from 'socket.io-client'; | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.65.0-7'; | ||
var PROMPTBOOK_VERSION = '0.65.0'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -129,3 +129,5 @@ | ||
var _this = this; | ||
return new Promise(function (resolve, reject) { | ||
return new Promise( | ||
// <- TODO: [🧱] Implement in a functional (not new Class) way | ||
function (resolve, reject) { | ||
var socket = io(_this.options.remoteUrl, { | ||
@@ -132,0 +134,0 @@ path: _this.options.path, |
@@ -13,3 +13,7 @@ import { PROMPTBOOK_VERSION } from '../version'; | ||
import { deepClone } from '../utils/deepClone'; | ||
import { deepFreeze } from '../utils/deepFreeze'; | ||
import { $deepFreeze } from '../utils/deepFreeze'; | ||
import { $getGlobalScope } from '../utils/environment/getGlobalScope'; | ||
import { $isRunningInBrowser } from '../utils/environment/isRunningInBrowser'; | ||
import { $isRunningInNode } from '../utils/environment/isRunningInNode'; | ||
import { $isRunningInWebWorker } from '../utils/environment/isRunningInWebWorker'; | ||
import { countCharacters } from '../utils/expectation-counters/countCharacters'; | ||
@@ -24,5 +28,2 @@ import { countLines } from '../utils/expectation-counters/countLines'; | ||
import { extractParameterNames } from '../utils/extractParameterNames'; | ||
import { isRunningInBrowser } from '../utils/isRunningInWhatever'; | ||
import { isRunningInNode } from '../utils/isRunningInWhatever'; | ||
import { isRunningInWebWorker } from '../utils/isRunningInWhatever'; | ||
import { capitalize } from '../utils/normalization/capitalize'; | ||
@@ -83,3 +84,7 @@ import { decapitalize } from '../utils/normalization/decapitalize'; | ||
export { deepClone }; | ||
export { deepFreeze }; | ||
export { $deepFreeze }; | ||
export { $getGlobalScope }; | ||
export { $isRunningInBrowser }; | ||
export { $isRunningInNode }; | ||
export { $isRunningInWebWorker }; | ||
export { countCharacters }; | ||
@@ -94,5 +99,2 @@ export { countLines }; | ||
export { extractParameterNames }; | ||
export { isRunningInBrowser }; | ||
export { isRunningInNode }; | ||
export { isRunningInWebWorker }; | ||
export { capitalize }; | ||
@@ -99,0 +101,0 @@ export { decapitalize }; |
@@ -6,3 +6,3 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* | ||
* Note: Done at 2024-05-25 | ||
* Note: Done at 2024-08-16 | ||
* | ||
@@ -23,3 +23,3 @@ * @see https://docs.anthropic.com/en/docs/models-overview | ||
* TODO: [🧠][👮♀️] Put here more info like description, isVision, trainingDateCutoff, languages, strengths ( Top-level performance, intelligence, fluency, and understanding), contextWindow,... | ||
* TODO: [🕚] Make this list dynamic - dynamically can be listed modelNames but not modelVariant, legacy status, context length and pricing | ||
* TODO: [🎰] Some mechanism to auto-update available models | ||
*/ |
@@ -6,2 +6,3 @@ import type { PostprocessingFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions'; | ||
* | ||
* Note: `$` is used to indicate that this function is not a pure function - it is not deterministic | ||
* Note: You can provide postprocessing functions to modify the text before checking the expectations | ||
@@ -8,0 +9,0 @@ * The result will be the text BEFORE the postprocessing |
@@ -21,2 +21,2 @@ import type { LlmExecutionTools } from '../../execution/LlmExecutionTools'; | ||
* TODO: [👷♂️] @@@ Manual about construction of llmTools | ||
*/ | ||
*/ |
@@ -21,3 +21,4 @@ import type { AvailableModel } from '../../execution/LlmExecutionTools'; | ||
* TODO: [🧠] Some mechanism to propagate unsureness | ||
* TODO: [🕚][👮♀️] Make this list dynamic - dynamically can be listed modelNames but not modelVariant, legacy status, context length and pricing | ||
* TODO: [🎰] Some mechanism to auto-update available models | ||
* TODO: [🎰][👮♀️] Make this list dynamic - dynamically can be listed modelNames but not modelVariant, legacy status, context length and pricing | ||
* TODO: [🧠][👮♀️] Put here more info like description, isVision, trainingDateCutoff, languages, strengths ( Top-level performance, intelligence, fluency, and understanding), contextWindow,... | ||
@@ -24,0 +25,0 @@ * @see https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4 |
@@ -5,2 +5,4 @@ import type { string_date_iso8601 } from '../types/typeAliases'; | ||
* | ||
* Note: `$` is used to indicate that this function is not a pure function - it is not deterministic because it depends on the current time | ||
* | ||
* @returns string_date branded type | ||
@@ -7,0 +9,0 @@ * @public exported from `@promptbook/utils` |
@@ -5,2 +5,3 @@ import type { ReadonlyDeep } from 'type-fest'; | ||
* | ||
* Note: `$` is used to indicate that this function is not a pure function - it mutates given object | ||
* Note: This function mutates the object and returns the original (but mutated-deep-freezed) object | ||
@@ -11,3 +12,3 @@ * | ||
*/ | ||
export declare function deepFreeze<TObject>(objectValue: TObject): ReadonlyDeep<TObject>; | ||
export declare function $deepFreeze<TObject>(objectValue: TObject): ReadonlyDeep<TObject>; | ||
/** | ||
@@ -14,0 +15,0 @@ * @@@ |
@@ -5,5 +5,7 @@ import type { string_folder_path } from '../../types/typeAliases'; | ||
* | ||
* Note: `$` is used to indicate that this function is not a pure function - it looks at the filesystem | ||
* | ||
* @private within the repository | ||
*/ | ||
export declare function isDirectoryExisting(directoryPath: string_folder_path): Promise<boolean>; | ||
export declare function $isDirectoryExisting(directoryPath: string_folder_path): Promise<boolean>; | ||
/** | ||
@@ -10,0 +12,0 @@ * Note: [🟢] This code should never be published outside of `@promptbook/node` and `@promptbook/cli` and `@promptbook/cli` |
@@ -5,5 +5,7 @@ import type { string_file_path } from '../../types/typeAliases'; | ||
* | ||
* Note: `$` is used to indicate that this function is not a pure function - it looks at the filesystem | ||
* | ||
* @private within the repository | ||
*/ | ||
export declare function isFileExisting(filePath: string_file_path): Promise<boolean>; | ||
export declare function $isFileExisting(filePath: string_file_path): Promise<boolean>; | ||
/** | ||
@@ -10,0 +12,0 @@ * Note: [🟢] This code should never be published outside of `@promptbook/node` and `@promptbook/cli` and `@promptbook/cli` |
@@ -6,2 +6,4 @@ import type { string_file_path } from '../../types/typeAliases'; | ||
* | ||
* Note: `$` is used to indicate that this function is not a pure function - it looks at the filesystem | ||
* | ||
* @param path | ||
@@ -12,3 +14,3 @@ * @param isRecursive | ||
*/ | ||
export declare function listAllFiles(path: string_folder_path, isRecursive: boolean): Promise<Array<string_file_path>>; | ||
export declare function $listAllFiles(path: string_folder_path, isRecursive: boolean): Promise<Array<string_file_path>>; | ||
/** | ||
@@ -15,0 +17,0 @@ * Note: [🟢] This code should never be published outside of `@promptbook/node` and `@promptbook/cli` and `@promptbook/cli` |
@@ -5,2 +5,3 @@ import type { number_seed } from '../../types/typeAliases'; | ||
* | ||
* Note: `$` is used to indicate that this function is not a pure function - it is not deterministic | ||
* Warning: This function is not cryptographically secure (it uses Math.random internally) | ||
@@ -7,0 +8,0 @@ * @public exported from `@promptbook/utils` |
{ | ||
"name": "@promptbook/remote-client", | ||
"version": "0.65.0", | ||
"version": "0.66.0-0", | ||
"description": "Supercharge your use of large language models", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.65.0" | ||
"@promptbook/core": "0.66.0-0" | ||
}, | ||
@@ -53,0 +53,0 @@ "dependencies": { |
@@ -11,3 +11,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.65.0-7'; | ||
var PROMPTBOOK_VERSION = '0.65.0'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -133,3 +133,5 @@ | ||
var _this = this; | ||
return new Promise(function (resolve, reject) { | ||
return new Promise( | ||
// <- TODO: [🧱] Implement in a functional (not new Class) way | ||
function (resolve, reject) { | ||
var socket = socket_ioClient.io(_this.options.remoteUrl, { | ||
@@ -136,0 +138,0 @@ path: _this.options.path, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
424903
444
8112