Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

@promptbook/node

Package Overview
Dependencies
Maintainers
0
Versions
243
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/node - npm Package Compare versions

Comparing version 0.76.0 to 0.77.0-0

esm/typings/src/llm-providers/vercel/createExecutionToolsFromVercelProvider.d.ts

4

esm/typings/src/_packages/utils.index.d.ts

@@ -11,3 +11,3 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';

import { isValidJsonString } from '../formats/json/utils/isValidJsonString';
import { $currentDate } from '../utils/$currentDate';
import { $getCurrentDate } from '../utils/$getCurrentDate';
import { $isRunningInBrowser } from '../utils/environment/$isRunningInBrowser';

@@ -86,3 +86,3 @@ import { $isRunningInNode } from '../utils/environment/$isRunningInNode';

export { isValidJsonString };
export { $currentDate };
export { $getCurrentDate };
export { $isRunningInBrowser };

@@ -89,0 +89,0 @@ export { $isRunningInNode };

import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { createExecutionToolsFromVercelProvider } from '../llm-providers/vercel/createExecutionToolsFromVercelProvider';
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { createExecutionToolsFromVercelProvider };

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

import type { string_user_id } from '../types/typeAliases';
/**

@@ -8,2 +9,9 @@ * @@@

/**
* A unique identifier representing your end-user
*
* Note: For example it can help to detect abuse
* For example for OpenAi @see https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids
*/
readonly userId?: string_user_id;
/**
* If true, the internal executions will be logged

@@ -14,4 +22,5 @@ */

/**
* TODO: [๐Ÿง ][๐Ÿคบ] Maybe allow overriding of `userId` for each prompt
* TODO: [๐Ÿˆ] Maybe add here `isDeterministic`
* TODO: [๐Ÿง ][๐Ÿ’™] Distinct between options passed into ExecutionTools and to ExecutionTools.execute
*/

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

*/
readonly userId?: string_user_id | null;
readonly userId?: string_user_id;
};

@@ -24,0 +24,0 @@ /**

@@ -36,3 +36,3 @@ import type { CommonToolsOptions } from '../../execution/CommonToolsOptions';

*/
readonly userId: string_user_id | null;
readonly userId?: string_user_id;
};
import type { ClientOptions } from 'openai';
import type { CommonToolsOptions } from '../../execution/CommonToolsOptions';
import type { string_user_id } from '../../types/typeAliases';
/**

@@ -12,10 +11,2 @@ * Options for `OpenAiExecutionTools`

*/
export type OpenAiExecutionToolsOptions = CommonToolsOptions & ClientOptions & {
/**
* A unique identifier representing your end-user, which can help OpenAI to monitor
* and detect abuse.
*
* @see https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids
*/
userId: string_user_id | null;
};
export type OpenAiExecutionToolsOptions = CommonToolsOptions & ClientOptions;

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

*/
readonly userId: string_user_id | null;
readonly userId?: string_user_id;
/**

@@ -30,0 +30,0 @@ * Configuration for the LLM tools

@@ -32,3 +32,3 @@ import type { Prompt } from '../../../types/Prompt';

*/
readonly userId: string_user_id | null;
readonly userId?: string_user_id;
/**

@@ -35,0 +35,0 @@ * Configuration for the LLM tools

@@ -44,3 +44,3 @@ import type { CommonToolsOptions } from '../../../execution/CommonToolsOptions';

*/
readonly userId: string_user_id | null;
readonly userId?: string_user_id;
} | ({

@@ -47,0 +47,0 @@ /**

@@ -65,3 +65,3 @@ import type { Promisable } from 'type-fest';

*/
readonly userId: string_user_id | null;
readonly userId?: string_user_id;
/**

@@ -68,0 +68,0 @@ * @@@

{
"name": "@promptbook/node",
"version": "0.76.0",
"version": "0.77.0-0",
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",

@@ -57,3 +57,3 @@ "--note-0": " <- [๐ŸŠ]",

"peerDependencies": {
"@promptbook/core": "0.76.0"
"@promptbook/core": "0.77.0-0"
},

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

@@ -26,2 +26,6 @@ <!-- โš ๏ธ WARNING: This code has been generated so that any manual changes will be overwritten -->

<blockquote style="color: #ff8811">
<b>โš  Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
</blockquote>
## ๐Ÿ“ฆ Package `@promptbook/node`

@@ -28,0 +32,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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