New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More β†’
Socket
Sign inDemoInstall
Socket

@promptbook/browser

Package Overview
Dependencies
Maintainers
0
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/browser - npm Package Compare versions

Comparing version

to
0.69.0-12

esm/typings/src/formats/csv/CsvSettings.d.ts

2

esm/index.es.js

@@ -8,3 +8,3 @@ import spaceTrim$1, { spaceTrim } from 'spacetrim';

*/
var PROMPTBOOK_VERSION = '0.69.0-10';
var PROMPTBOOK_VERSION = '0.69.0-11';
// TODO: !!!! List here all the versions and annotate + put into script

@@ -11,0 +11,0 @@

@@ -20,2 +20,3 @@ import { PROMPTBOOK_VERSION } from '../version';

import { DEFAULT_REMOTE_URL_PATH } from '../config';
import { DEFAULT_CSV_SETTINGS } from '../config';
import { IS_VERBOSE } from '../config';

@@ -96,2 +97,3 @@ import { pipelineJsonToString } from '../conversion/pipelineJsonToString';

export { DEFAULT_REMOTE_URL_PATH };
export { DEFAULT_CSV_SETTINGS };
export { IS_VERBOSE };

@@ -98,0 +100,0 @@ export { pipelineJsonToString };

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

import type { FormatSubvalueDefinition } from '../formats/_common/FormatSubvalueDefinition';
import type { CsvSettings } from '../formats/csv/CsvSettings';
import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callback/CallbackInterfaceToolsOptions';

@@ -228,2 +229,3 @@ import type { LlmToolsConfiguration } from '../llm-providers/_common/LlmToolsConfiguration';

import type { string_snake_case } from '../utils/normalization/normalizeTo_snake_case';
import type { empty_object } from '../utils/organization/empty_object';
import type { really_any } from '../utils/organization/really_any';

@@ -270,2 +272,3 @@ import type { TODO_any } from '../utils/organization/TODO_any';

export type { FormatSubvalueDefinition };
export type { CsvSettings };
export type { CallbackInterfaceToolsOptions };

@@ -459,4 +462,5 @@ export type { LlmToolsConfiguration };

export type { string_snake_case };
export type { empty_object };
export type { really_any };
export type { TODO_any };
export type { string_promptbook_version };

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

import type { CsvSettings } from './formats/csv/CsvSettings';
/**

@@ -145,2 +146,8 @@ * Warning message for the generated sections and files files

*/
export declare const DEFAULT_CSV_SETTINGS: CsvSettings;
/**
* @@@
*
* @public exported from `@promptbook/core`
*/
export declare const IS_VERBOSE = false;

@@ -147,0 +154,0 @@ /**

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

import type { CsvSettings } from '../../formats/csv/CsvSettings';
export type CreatePipelineExecutorSettings = {

@@ -21,2 +22,8 @@ /**

/**
* Settings for CSV format
*
* @default DEFAULT_CSV_SETTINGS
*/
readonly csvSettings: CsvSettings;
/**
* If you pass fully prepared pipeline, this does not matter

@@ -23,0 +30,0 @@ *

@@ -1,4 +0,5 @@

import type { string_SCREAMING_CASE } from '../../utils/normalization/normalizeTo_SCREAMING_CASE';
import type { string_mime_type } from '../../types/typeAliases';
import type { string_name } from '../../types/typeAliases';
import type { string_SCREAMING_CASE } from '../../utils/normalization/normalizeTo_SCREAMING_CASE';
import type { empty_object } from '../../utils/organization/empty_object';
import type { FormatSubvalueDefinition } from './FormatSubvalueDefinition';

@@ -8,6 +9,8 @@ /**

*
* @@@ Describe setting vs schema
*
* @see https://github.com/webgptorg/promptbook/discussions/36
* @private still in development [🏒]
*/
export type FormatDefinition<TValue extends TPartialValue, TPartialValue extends string, TSchema> = {
export type FormatDefinition<TValue extends TPartialValue, TPartialValue extends string, TSettings extends empty_object, TSchema extends empty_object> = {
/**

@@ -35,3 +38,3 @@ * The name of the format used in .ptbk.md files

*/
isValid(value: string, schema?: TSchema): value is TValue;
isValid(value: string, settings?: TSettings, schema?: TSchema): value is TValue;
/**

@@ -45,3 +48,3 @@ * Check if a first part of a value is valid

*/
canBeValid(partialValue: string, schema?: TSchema): partialValue is TPartialValue;
canBeValid(partialValue: string, settings?: TSettings, schema?: TSchema): partialValue is TPartialValue;
/**

@@ -57,7 +60,7 @@ * Heal a value to make it valid if possible

*/
heal(value: string, scheme?: TSchema): TValue;
heal(value: string, settings?: TSettings, scheme?: TSchema): TValue;
/**
* @@@
*/
readonly subvalueDefinitions: Array<FormatSubvalueDefinition<TValue>>;
readonly subvalueDefinitions: Array<FormatSubvalueDefinition<TValue, TSettings>>;
};

@@ -64,0 +67,0 @@ /**

import type { Promisable } from 'type-fest';
import type { string_SCREAMING_CASE } from '../../utils/normalization/normalizeTo_SCREAMING_CASE';
import type { Parameters } from '../../types/typeAliases';
import type { string_name } from '../../types/typeAliases';
import type { string_SCREAMING_CASE } from '../../utils/normalization/normalizeTo_SCREAMING_CASE';
import type { empty_object } from '../../utils/organization/empty_object';
/**
* @@@
*/
export type FormatSubvalueDefinition<TValue extends string> = {
export type FormatSubvalueDefinition<TValue extends string, TSettings extends empty_object> = {
/**

@@ -25,3 +26,3 @@ * The name of the format used in .ptbk.md files

*/
mapValues(value: TValue, mapCallback: (subvalues: Parameters, index: number) => Promisable<string>): Promise<string>;
mapValues(value: TValue, settings: TSettings, mapCallback: (subvalues: Parameters, index: number) => Promisable<string>): Promise<string>;
};

@@ -28,0 +29,0 @@ /**

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

import type { TODO_any } from '../../utils/organization/TODO_any';
import type { FormatDefinition } from '../_common/FormatDefinition';
import type { CsvSettings } from './CsvSettings';
/**

@@ -8,3 +10,3 @@ * Definition for CSV spreadsheet

*/
export declare const CsvFormatDefinition: FormatDefinition<string, string, object>;
export declare const CsvFormatDefinition: FormatDefinition<string, string, CsvSettings, TODO_any>;
/**

@@ -11,0 +13,0 @@ * TODO: [πŸ“] In `CsvFormatDefinition` implement simple `isValid`

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

*/
export declare const FORMAT_DEFINITIONS: readonly [import("./_common/FormatDefinition").FormatDefinition<string, string, object>, import("./_common/FormatDefinition").FormatDefinition<string, string, object>, import("./_common/FormatDefinition").FormatDefinition<string, string, never>, import("./_common/FormatDefinition").FormatDefinition<string, string, object>];
export declare const FORMAT_DEFINITIONS: readonly [import("./_common/FormatDefinition").FormatDefinition<string, string, any, any>, import("./_common/FormatDefinition").FormatDefinition<string, string, any, any>, import("./_common/FormatDefinition").FormatDefinition<string, string, any, any>, import("./_common/FormatDefinition").FormatDefinition<string, string, import("./csv/CsvSettings").CsvSettings, any>];

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

import type { TODO_any } from '../../utils/organization/TODO_any';
import type { FormatDefinition } from '../_common/FormatDefinition';

@@ -7,7 +8,7 @@ /**

*/
export declare const JsonFormatDefinition: FormatDefinition<string, string, object>;
export declare const JsonFormatDefinition: FormatDefinition<string, string, TODO_any, TODO_any>;
/**
* TODO: [🧠] Maybe propper instance of object
* TODO: [0] Make string_serialized_json
* TODO: [1] Make type for JSON Schema
* TODO: [1] Make type for JSON Settings and Schema
* TODO: [🧠] What to use for validating JSONs - JSON Schema, ZoD, typescript types/interfaces,...?

@@ -14,0 +15,0 @@ * TODO: [πŸ“] In `JsonFormatDefinition` implement simple `isValid`

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

import type { TODO_any } from '../../utils/organization/TODO_any';
import type { FormatDefinition } from '../_common/FormatDefinition';

@@ -9,4 +10,5 @@ /**

*/
export declare const TextFormatDefinition: FormatDefinition<string, string, never>;
export declare const TextFormatDefinition: FormatDefinition<string, string, TODO_any, TODO_any>;
/**
* TODO: [1] Make type for XML Text and Schema
* TODO: [🧠][🀠] Here should be all words, characters, lines, paragraphs, pages aviable as subvalues

@@ -13,0 +15,0 @@ * TODO: [πŸ“] In `TextFormatDefinition` implement simple `isValid`

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

import type { TODO_any } from '../../utils/organization/TODO_any';
import type { FormatDefinition } from '../_common/FormatDefinition';

@@ -7,7 +8,7 @@ /**

*/
export declare const XmlFormatDefinition: FormatDefinition<string, string, object>;
export declare const XmlFormatDefinition: FormatDefinition<string, string, TODO_any, TODO_any>;
/**
* TODO: [🧠] Maybe propper instance of object
* TODO: [0] Make string_serialized_xml
* TODO: [1] Make type for XML Schema
* TODO: [1] Make type for XML Settings and Schema
* TODO: [🧠] What to use for validating XMLs - XSD,...

@@ -14,0 +15,0 @@ * TODO: [πŸ“] In `XmlFormatDefinition` implement simple `isValid`

{
"name": "@promptbook/browser",
"version": "0.69.0-11",
"version": "0.69.0-12",
"description": "Supercharge your use of large language models",

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

"peerDependencies": {
"@promptbook/core": "0.69.0-11"
"@promptbook/core": "0.69.0-12"
},

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

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

*/
var PROMPTBOOK_VERSION = '0.69.0-10';
var PROMPTBOOK_VERSION = '0.69.0-11';
// TODO: !!!! List here all the versions and annotate + put into script

@@ -18,0 +18,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet