Socket
Socket
Sign inDemoInstall

@promptbook/remote-client

Package Overview
Dependencies
Maintainers
0
Versions
401
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/remote-client - npm Package Compare versions

Comparing version 0.67.0-3 to 0.67.0-4

6

esm/index.es.js

@@ -8,3 +8,3 @@ import { io } from 'socket.io-client';

*/
var PROMPTBOOK_VERSION = '0.67.0-2';
var PROMPTBOOK_VERSION = '0.67.0-3';
// TODO: !!!! List here all the versions and annotate + put into script

@@ -575,3 +575,2 @@

isAnonymous: false,
clientId: this.options.clientId,
} /* <- TODO: [🤛] */);

@@ -664,2 +663,3 @@ }

isAnonymous: true,
userId: this.options.userId,
llmToolsConfiguration: this.options.llmToolsConfiguration,

@@ -672,3 +672,3 @@ prompt: prompt,

isAnonymous: false,
clientId: this.options.clientId,
userId: this.options.userId,
prompt: prompt,

@@ -675,0 +675,0 @@ } /* <- TODO: [🤛] */);

@@ -160,3 +160,3 @@ import type { PipelineCollection } from '../collection/PipelineCollection';

import type { string_uuid } from '../types/typeAliases';
import type { client_id } from '../types/typeAliases';
import type { string_user_id } from '../types/typeAliases';
import type { string_sha256 } from '../types/typeAliases';

@@ -387,3 +387,3 @@ import type { string_semantic_version } from '../types/typeAliases';

export type { string_uuid };
export type { client_id };
export type { string_user_id };
export type { string_sha256 };

@@ -390,0 +390,0 @@ export type { string_semantic_version };

@@ -1,2 +0,1 @@

import type { client_id } from '../../../types/typeAliases';
import type { LlmToolsConfiguration } from '../../_common/LlmToolsConfiguration';

@@ -14,6 +13,2 @@ /**

isAnonymous: false;
/**
* Client responsible for the requests
*/
readonly clientId: client_id;
};

@@ -33,4 +28,4 @@ export type PromptbookServer_ListModels_AnonymousRequest = {

* TODO: [🧠][🛍] Maybe not `isAnonymous: boolean` BUT `mode: 'ANONYMOUS'|'COLLECTION'`
* TODO: [🧠][🤺] Pass `clientId` in `PromptbookServer_ListModels_Request`
* TODO: [🧠][🤺] Pass `userId` in `PromptbookServer_ListModels_Request`
* TODO: [👒] Listing models (and checking configuration) probbably should go through REST API not Socket.io
*/
import type { Prompt } from '../../../types/Prompt';
import type { client_id } from '../../../types/typeAliases';
import type { string_user_id } from '../../../types/typeAliases';
import type { LlmToolsConfiguration } from '../../_common/LlmToolsConfiguration';

@@ -14,7 +14,10 @@ /**

*/
isAnonymous: false;
readonly isAnonymous: false;
/**
* Client responsible for the requests
* Identifier of the end user
*
* Note: this is passed to the certain model providers to identify misuse
* Note: In anonymous mode it is not required to identify
*/
readonly clientId: client_id;
readonly userId: string_user_id;
/**

@@ -29,4 +32,11 @@ * The Prompt to execute

*/
isAnonymous: true;
readonly isAnonymous: true;
/**
* Identifier of the end user
*
* Note: this is passed to the certain model providers to identify misuse
* Note: In anonymous mode it is not required to identify
*/
readonly userId?: string_user_id;
/**
* Configuration for the LLM tools

@@ -43,2 +53,2 @@ */

* TODO: [🧠][🛍] Maybe not `isAnonymous: boolean` BUT `mode: 'ANONYMOUS'|'COLLECTION'`
*/
*/
import type { CommonExecutionToolsOptions } from '../../../execution/CommonExecutionToolsOptions';
import type { client_id } from '../../../types/typeAliases';
import type { string_base_url } from '../../../types/typeAliases';
import type { string_uri } from '../../../types/typeAliases';
import type { string_user_id } from '../../../types/typeAliases';
import type { LlmToolsConfiguration } from '../../_common/LlmToolsConfiguration';

@@ -37,2 +37,9 @@ /**

readonly llmToolsConfiguration: LlmToolsConfiguration;
/**
* Identifier of the end user
*
* Note: this is passed to the certain model providers to identify misuse
* Note: In anonymous mode it is not required to identify
*/
readonly userId?: string_user_id;
} | {

@@ -44,5 +51,7 @@ /**

/**
* Your client ID
* Identifier of the end user
*
* Note: this is passed to the certain model providers to identify misuse
*/
readonly clientId: client_id;
readonly userId: string_user_id;
});

@@ -49,0 +58,0 @@ /**

import type { PipelineCollection } from '../../../collection/PipelineCollection';
import type { CommonExecutionToolsOptions } from '../../../execution/CommonExecutionToolsOptions';
import type { LlmExecutionTools } from '../../../execution/LlmExecutionTools';
import type { client_id } from '../../../types/typeAliases';
import type { string_uri } from '../../../types/typeAliases';
import type { string_user_id } from '../../../types/typeAliases';
/**

@@ -53,3 +53,3 @@ * @@@

*/
createLlmExecutionTools(clientId: client_id): LlmExecutionTools;
createLlmExecutionTools(userId: string_user_id | undefined): LlmExecutionTools;
};

@@ -56,0 +56,0 @@ /**

#!/usr/bin/env ts-node
export {};
import '../../openai/register-constructor';

@@ -394,7 +394,5 @@ import type { TupleToUnion } from 'type-fest';

/**
* Branded type client id
* End user identifier;
*/
export type client_id = string & {
readonly _type: 'client_id';
};
export type string_user_id = string;
/**

@@ -401,0 +399,0 @@ * Semantic helper

{
"name": "@promptbook/remote-client",
"version": "0.67.0-3",
"version": "0.67.0-4",
"description": "Supercharge your use of large language models",

@@ -50,3 +50,3 @@ "private": false,

"peerDependencies": {
"@promptbook/core": "0.67.0-3"
"@promptbook/core": "0.67.0-4"
},

@@ -53,0 +53,0 @@ "dependencies": {

@@ -15,3 +15,3 @@ (function (global, factory) {

*/
var PROMPTBOOK_VERSION = '0.67.0-2';
var PROMPTBOOK_VERSION = '0.67.0-3';
// TODO: !!!! List here all the versions and annotate + put into script

@@ -582,3 +582,2 @@

isAnonymous: false,
clientId: this.options.clientId,
} /* <- TODO: [🤛] */);

@@ -671,2 +670,3 @@ }

isAnonymous: true,
userId: this.options.userId,
llmToolsConfiguration: this.options.llmToolsConfiguration,

@@ -679,3 +679,3 @@ prompt: prompt,

isAnonymous: false,
clientId: this.options.clientId,
userId: this.options.userId,
prompt: prompt,

@@ -682,0 +682,0 @@ } /* <- TODO: [🤛] */);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc