Socket
Socket
Sign inDemoInstall

@promptbook/core

Package Overview
Dependencies
Maintainers
1
Versions
409
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/core - npm Package Compare versions

Comparing version 0.69.0-1 to 0.69.0-2

esm/typings/src/commands/FOREACH/ForeachJson.d.ts

2

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

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

import type { ExpectCommand } from '../commands/EXPECT/ExpectCommand';
import type { ForeachJson } from '../commands/FOREACH/ForeachJson';
import type { FormatCommand } from '../commands/FORMAT/FormatCommand';

@@ -236,2 +237,3 @@ import type { TemplateType } from '../commands/TEMPLATE/TemplateTypes';

export type { ExpectCommand };
export type { ForeachJson };
export type { FormatCommand };

@@ -238,0 +240,0 @@ export type { TemplateType };

8

esm/typings/src/commands/_common/types/CommandParser.d.ts

@@ -159,3 +159,3 @@ import type { WritableDeep } from 'type-fest';

* @example 'promptbook version 0.62.0'
* @example 'FOREACH List Line -> `{customer}`'
* @example 'FOREACH List Line `{customers}` -> `{customer}`'
*/

@@ -167,3 +167,3 @@ readonly raw: string_markdown_text;

* @example '0.62.0'
* @example 'List Line -> `{customer}`'
* @example 'List Line `{customers}` -> `{customer}`'
*/

@@ -175,3 +175,3 @@ readonly rawArgs: string_markdown_text;

* @example 'PROMPTBOOK_VERSION_0_62_0'
* @example 'FOREACH_LIST_LINE_CUSTOMER'
* @example 'FOREACH_LIST_LINE_CUSTOMERS_CUSTOMER'
*/

@@ -183,3 +183,3 @@ readonly normalized: string_name & string_SCREAMING_CASE;

* @example [ '0.62.0' ]
* @example [ 'List', 'Line', '', '{customer}' ]
* @example [ 'List', 'Line', '{customers}', '', '{customer}' ]
*/

@@ -186,0 +186,0 @@ readonly args: Array<string_name>;

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

import type { string_parameter_name } from '../../types/typeAliases';
import type { TODO_string } from '../../utils/organization/TODO_string';
import type { ForeachJson } from './ForeachJson';
/**

@@ -11,5 +10,2 @@ * Parsed FOREACH command <- Write [🍭] !!!!!!

readonly type: 'FOREACH';
formatName: TODO_string;
cellName: TODO_string;
parameterName: string_parameter_name;
};
} & ForeachJson;

@@ -151,5 +151,11 @@ /**

*/
export declare const DEBUG_ALLOW_PAYED_TESTING: boolean;
export declare const IS_COST_PREVENTED: boolean;
/**
* @@@
*
* @private within the repository
*/
export declare const IS_PIPELINE_LOGIC_VALIDATED: boolean;
/**
* TODO: [🧠][πŸ§œβ€β™‚οΈ] Maybe join remoteUrl and path into single value
*/

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

/**
* TODO: !!!!!! FOREACH in mermaid graph
* TODO: !!!!!! Knowledge in mermaid graph
* TODO: !!!!!! Personas in mermaid graph
* TODO: Maybe use some Mermaid package instead of string templating
* TODO: [πŸ•Œ] When more than 2 functionalities, split into separate functions
*/

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

*/
export declare function extractParameterNamesFromTemplate(template: Pick<TemplateJson, 'title' | 'description' | 'templateType' | 'content' | 'preparedContent' | 'jokerParameterNames'>): Set<string_parameter_name>;
export declare function extractParameterNamesFromTemplate(template: Pick<TemplateJson, 'title' | 'description' | 'templateType' | 'content' | 'preparedContent' | 'jokerParameterNames' | 'foreach'>): Set<string_parameter_name>;
/**
* TODO: [πŸ”£] If script require contentLanguage
*/

@@ -19,2 +19,6 @@ import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';

/**
* @private internal function for `validatePipeline`
*/
export declare function validatePipelineCore(pipeline: PipelineJson): void;
/**
* TODO: [🧠] Work with promptbookVersion

@@ -21,0 +25,0 @@ * TODO: Use here some json-schema, Zod or something similar and change it to:

@@ -42,1 +42,4 @@ import type { string_markdown_text } from '../typeAliases';

};
/**
* TODO: !!!!!! FOREACH in report
*/

@@ -36,4 +36,5 @@ import type { string_markdown_text } from '../typeAliases';

/**
* TODO: [🧠] !!!!!! Should be here registered subparameter from foreach or not?
* TODO: [β™ˆ] Probbably move expectations from templates to parameters
* TODO: [πŸ™] Make some standard order of json properties
*/

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

import type { ForeachJson } from '../../commands/FOREACH/ForeachJson';
import type { FormatCommand } from '../../commands/FORMAT/FormatCommand';

@@ -46,2 +47,6 @@ import type { TemplateType } from '../../commands/TEMPLATE/TemplateTypes';

/**
* @@@
*/
readonly foreach?: ForeachJson;
/**
* Type of the execution

@@ -48,0 +53,0 @@ * This determines if the template is send to LLM, user or some scripting evaluation

{
"name": "@promptbook/core",
"version": "0.69.0-1",
"version": "0.69.0-2",
"description": "Supercharge your use of large language models",

@@ -5,0 +5,0 @@ "private": false,

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