Socket
Socket
Sign inDemoInstall

@promptbook/remote-client

Package Overview
Dependencies
Maintainers
0
Versions
406
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.68.0-3 to 0.68.0-4

esm/typings/src/commands/_common/getParserForCommand.d.ts

4

esm/index.es.js

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

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

@@ -469,3 +469,3 @@

/**
* This error indicates that the promptbook object has valid syntax but contains logical errors (like circular dependencies)
* This error indicates that the promptbook object has valid syntax (=can be parsed) but contains logical errors (like circular dependencies)
*

@@ -472,0 +472,0 @@ * @public exported from `@promptbook/core`

@@ -12,3 +12,3 @@ declare const _default: ({

templates: {
blockType: string;
templateType: string;
name: string;

@@ -36,3 +36,3 @@ title: string;

templates: {
blockType: string;
templateType: string;
name: string;

@@ -66,3 +66,3 @@ title: string;

templates: {
blockType: string;
templateType: string;
name: string;

@@ -69,0 +69,0 @@ title: string;

@@ -7,4 +7,4 @@ import { PROMPTBOOK_VERSION } from '../version';

import { createSubcollection } from '../collection/constructors/createSubcollection';
import type { BlockType } from '../commands/BLOCK/BlockTypes';
import { BlockTypes } from '../commands/BLOCK/BlockTypes';
import type { TemplateType } from '../commands/TEMPLATE/TemplateTypes';
import { TemplateTypes } from '../commands/TEMPLATE/TemplateTypes';
import { CLAIM } from '../config';

@@ -81,4 +81,4 @@ import { MAX_PARALLEL_COUNT } from '../config';

export { createSubcollection };
export type { BlockType };
export { BlockTypes };
export type { TemplateType };
export { TemplateTypes };
export { CLAIM };

@@ -85,0 +85,0 @@ export { MAX_PARALLEL_COUNT };

@@ -9,5 +9,5 @@ import type { PipelineCollection } from '../collection/PipelineCollection';

import type { CommandUsagePlace } from '../commands/_common/types/CommandUsagePlaces';
import type { BlockType } from '../commands/BLOCK/BlockTypes';
import type { ExpectCommand } from '../commands/EXPECT/ExpectCommand';
import type { FormatCommand } from '../commands/FORMAT/FormatCommand';
import type { TemplateType } from '../commands/TEMPLATE/TemplateTypes';
import type { PipelineStringToJsonOptions } from '../conversion/pipelineStringToJson';

@@ -234,5 +234,5 @@ import type { PrettifyOptions } from '../conversion/prettify/PrettifyOptions';

export type { CommandUsagePlace };
export type { BlockType };
export type { ExpectCommand };
export type { FormatCommand };
export type { TemplateType };
export type { PipelineStringToJsonOptions };

@@ -239,0 +239,0 @@ export type { PrettifyOptions };

@@ -7,3 +7,3 @@ import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';

* Note: Functions `collectionToJson` and `createCollectionFromJson` are complementary
* Note: During the construction syntax and logic of all sources are validated
* Note: Syntax, parsing, and logic consistency checks are performed on all sources during build
*

@@ -10,0 +10,0 @@ * @param promptbookSources

@@ -133,4 +133,4 @@ import type { WritableDeep } from 'type-fest';

export type $TemplateJson = {
isBlockTypeSet: boolean;
isTemplateBlock: boolean;
isTemplateTypeSet: boolean;
isTemplate: boolean;
} & Partial<WritableDeep<TemplateJson>>;

@@ -137,0 +137,0 @@ /**

@@ -13,3 +13,3 @@ import type { PipelineTemplateCommandParser } from '../_common/types/CommandParser';

/**
* TODO: [🍭] Make .ptbk.md file with examples of the FOREACH command and also with wrong syntax and logic
* TODO: [🍭] Make .ptbk.md file with examples of the FOREACH command and also with wrong parsing and logic
*/

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

*/
export declare const COMMANDS: readonly [import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./BLOCK/BlockCommand").BlockCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./EXPECT/ExpectCommand").ExpectCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FORMAT/FormatCommand").FormatCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./JOKER/JokerCommand").JokerCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./MODEL/ModelCommand").ModelCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PARAMETER/ParameterCommand").ParameterCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./POSTPROCESS/PostprocessCommand").PostprocessCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./PROMPTBOOK_VERSION/PromptbookVersionCommand").PromptbookVersionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./URL/UrlCommand").UrlCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./KNOWLEDGE/KnowledgeCommand").KnowledgeCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_ACTION/ActionCommand").ActionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_INSTRUMENT/InstrumentCommand").InstrumentCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PERSONA/PersonaCommand").PersonaCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FOREACH/ForeachCommand").ForeachCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./_BOILERPLATE/BoilerplateCommand").BoilerplateCommand>];
export declare const COMMANDS: readonly [import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./TEMPLATE/TemplateCommand").TemplateCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./EXPECT/ExpectCommand").ExpectCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FORMAT/FormatCommand").FormatCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./JOKER/JokerCommand").JokerCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./MODEL/ModelCommand").ModelCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PARAMETER/ParameterCommand").ParameterCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./POSTPROCESS/PostprocessCommand").PostprocessCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./PROMPTBOOK_VERSION/PromptbookVersionCommand").PromptbookVersionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./URL/UrlCommand").UrlCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./KNOWLEDGE/KnowledgeCommand").KnowledgeCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_ACTION/ActionCommand").ActionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_INSTRUMENT/InstrumentCommand").InstrumentCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PERSONA/PersonaCommand").PersonaCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FOREACH/ForeachCommand").ForeachCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./_BOILERPLATE/BoilerplateCommand").BoilerplateCommand>];

@@ -10,1 +10,4 @@ import type { PipelineHeadCommandParser } from '../_common/types/CommandParser';

export declare const knowledgeCommandParser: PipelineHeadCommandParser<KnowledgeCommand>;
/**
* Note: [⛱] There are two types of KNOWLEDGE commands *...(read more in [⛱])*
*/

@@ -10,1 +10,4 @@ import type { PipelineHeadCommandParser } from '../_common/types/CommandParser';

export declare const actionCommandParser: PipelineHeadCommandParser<ActionCommand>;
/**
* Note: [⛱] There are two types of ACTION commands *...(read more in [⛱])*
*/

@@ -10,1 +10,4 @@ import type { PipelineHeadCommandParser } from '../_common/types/CommandParser';

export declare const instrumentCommandParser: PipelineHeadCommandParser<InstrumentCommand>;
/**
* Note: [⛱] There are two types of INSTRUMENT commands *...(read more in [⛱])*
*/

@@ -12,3 +12,3 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson';

/**
* TODO: !!!!!! Implement new features and commands into `templateParameterJsonToString`
* TODO: [🛋] Implement new features and commands into `pipelineJsonToString` + `templateParameterJsonToString` , use `stringifyCommand`
* TODO: [🧠] Is there a way to auto-detect missing features in pipelineJsonToString

@@ -15,0 +15,0 @@ * TODO: [🏛] Maybe make some markdown builder

@@ -25,3 +25,3 @@ import type { LlmExecutionTools } from '../execution/LlmExecutionTools';

*
* Note: This function does not validate logic of the pipeline only the syntax
* Note: This function does not validate logic of the pipeline only the parsing
* Note: This function acts as compilation process

@@ -28,0 +28,0 @@ *

@@ -11,3 +11,3 @@ import type { PipelineJson } from '../types/PipelineJson/PipelineJson';

*
* Note: This function does not validate logic of the pipeline only the syntax
* Note: This function does not validate logic of the pipeline only the parsing
* Note: This function acts as compilation process

@@ -14,0 +14,0 @@ *

@@ -11,5 +11,5 @@ import type { TemplateJson } from '../../types/PipelineJson/TemplateJson';

*/
export declare function extractParameterNamesFromTemplate(template: Pick<TemplateJson, 'title' | 'description' | 'blockType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
export declare function extractParameterNamesFromTemplate(template: Pick<TemplateJson, 'title' | 'description' | 'templateType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
/**
* TODO: [🔣] If script require contentLanguage
*/
export {};
/**
* TODO: Include automatically all samples from logic errors folder (same with syntax errors)
* TODO: [🚏] DRY
*/
/**
* This error indicates that the promptbook object has valid syntax but contains logical errors (like circular dependencies)
* This error indicates that the promptbook object has valid syntax (=can be parsed) but contains logical errors (like circular dependencies)
*

@@ -4,0 +4,0 @@ * @public exported from `@promptbook/core`

@@ -5,3 +5,3 @@ import type { ScriptLanguage } from '../types/ScriptLanguage';

/**
* Represents all the tools needed to EXECUTE SCRIPTs
* Represents all the tools needed to execute SCRIPT TEMPLATE
*

@@ -8,0 +8,0 @@ * @see https://github.com/webgptorg/promptbook#script-execution-tools

@@ -16,3 +16,3 @@ import type { CommonExecutionToolsOptions } from '../../../execution/CommonExecutionToolsOptions';

/**
* Trigger window.DIALOG BLOCK
* Trigger window.DIALOG TEMPLATE
*/

@@ -19,0 +19,0 @@ promptDialog(options: UserInterfaceToolsPromptDialogOptions): Promise<string>;

@@ -9,3 +9,3 @@ import type { TemplateJsonCommon } from './TemplateJsonCommon';

export type DialogTemplateJson = TemplateJsonCommon & {
readonly blockType: 'DIALOG_TEMPLATE';
readonly templateType: 'DIALOG_TEMPLATE';
};

@@ -12,0 +12,0 @@ /**

@@ -10,3 +10,3 @@ import type { ModelRequirements } from '../ModelRequirements';

export type PromptTemplateJson = TemplateJsonCommon & {
readonly blockType: 'PROMPT_TEMPLATE';
readonly templateType: 'PROMPT_TEMPLATE';
/**

@@ -18,3 +18,3 @@ * Name of the persona who will be responding to this prompt

* Requirements for the model
* - This is required only for blockType PROMPT_TEMPLATE
* - This is required only for templateType PROMPT_TEMPLATE
*/

@@ -21,0 +21,0 @@ readonly modelRequirements?: Partial<ModelRequirements>;

@@ -10,6 +10,6 @@ import type { ScriptLanguage } from '../ScriptLanguage';

export type ScriptTemplateJson = TemplateJsonCommon & {
readonly blockType: 'SCRIPT_TEMPLATE';
readonly templateType: 'SCRIPT_TEMPLATE';
/**
* Language of the script
* - This is required only for blockType SCRIPT
* - This is required only for templateType SCRIPT
*

@@ -16,0 +16,0 @@ */

@@ -9,3 +9,3 @@ import type { TemplateJsonCommon } from './TemplateJsonCommon';

export type SimpleTemplateJson = TemplateJsonCommon & {
readonly blockType: 'SIMPLE_TEMPLATE';
readonly templateType: 'SIMPLE_TEMPLATE';
};

@@ -12,0 +12,0 @@ /**

@@ -1,3 +0,3 @@

import type { BlockType } from '../../commands/BLOCK/BlockTypes';
import type { FormatCommand } from '../../commands/FORMAT/FormatCommand';
import type { TemplateType } from '../../commands/TEMPLATE/TemplateTypes';
import type { string_javascript } from '../typeAliases';

@@ -49,3 +49,3 @@ import type { string_markdown } from '../typeAliases';

*/
readonly blockType: BlockType;
readonly templateType: TemplateType;
/**

@@ -52,0 +52,0 @@ * Content of the template with {placeholders} for parameters

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

import type { BlockType } from '../commands/BLOCK/BlockTypes';
import type { TemplateType } from '../commands/TEMPLATE/TemplateTypes';
import type { string_markdown_text } from './typeAliases';

@@ -34,3 +34,3 @@ import type { string_name } from './typeAliases';

*/
readonly blockType: BlockType;
readonly templateType: TemplateType;
/**

@@ -37,0 +37,0 @@ * The parameter name that is being processed.

@@ -13,4 +13,3 @@ import type { string_markdown } from '../../types/typeAliases';

/**
* TODO: !!!!!! Somw way how to connect this with commands
* TODO: [🏛] This can be part of markdown builder
*/
{
"name": "@promptbook/remote-client",
"version": "0.68.0-3",
"version": "0.68.0-4",
"description": "Supercharge your use of large language models",

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

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

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

@@ -92,3 +92,3 @@ <!-- ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten -->

>
> - DIALOG BLOCK
> - DIALOG TEMPLATE
>

@@ -127,3 +127,3 @@ > ```

>
> - DIALOG BLOCK
> - DIALOG TEMPLATE
>

@@ -130,0 +130,0 @@ > ```

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

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

@@ -476,3 +476,3 @@

/**
* This error indicates that the promptbook object has valid syntax but contains logical errors (like circular dependencies)
* This error indicates that the promptbook object has valid syntax (=can be parsed) but contains logical errors (like circular dependencies)
*

@@ -479,0 +479,0 @@ * @public exported from `@promptbook/core`

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