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

@promptbook/anthropic-claude

Package Overview
Dependencies
Maintainers
0
Versions
312
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/anthropic-claude - npm Package Compare versions

Comparing version 0.67.0-3 to 0.67.0-4

4

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

@@ -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/anthropic-claude",
"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": {

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