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

@markprompt/core

Package Overview
Dependencies
Maintainers
0
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markprompt/core - npm Package Compare versions

Comparing version 0.38.10 to 0.39.0

3

dist/chat/index.js

@@ -27,3 +27,3 @@ import defaults from 'defaults';

const { signal, tools, toolChoice, additionalMetadata, ...cloneableOpts } = validOptions;
const { debug, policiesOptions, retrievalOptions, ...resolvedOptions } = defaults({
const { debug, policiesOptions, messageTagOptions, retrievalOptions, ...resolvedOptions } = defaults({
...cloneableOpts,

@@ -57,2 +57,3 @@ // Only include known tool properties

policies: policiesOptions,
messageTags: messageTagOptions,
retrieval: retrievalOptions,

@@ -59,0 +60,0 @@ additionalMetadata,

@@ -48,3 +48,3 @@ import type { ChatCompletionMessageToolCall, ChatCompletionTool, ChatCompletionToolChoiceOption } from 'openai/resources/chat/index.js';

* If true, use all policies added in the project.
* Otherwise, only use the ones excplicitly specified
* Otherwise, only use the ones explicitly specified
* in the `ids` list.

@@ -60,2 +60,21 @@ * @default true

}
export interface MessageTagOptions {
/**
* If true, enable the use of message tags.
* @default true
**/
enabled?: boolean;
/**
* If true, use all message tags added in the project.
* Otherwise, only use the ones explicitly specified
* in the `ids` list.
* @default true
**/
useAll?: boolean;
/**
* Only use specific message tags for retrieval.
* @default []
**/
ids?: string[];
}
export interface RetrievalOptions {

@@ -69,3 +88,3 @@ /**

* If true, use all sources connected in the project.
* Otherwise, only use the ones excplicitly specified
* Otherwise, only use the ones explicitly specified
* in the `ids` list.

@@ -110,2 +129,6 @@ * @default true

/**
* Options for the use of message tags.
**/
messageTagOptions?: MessageTagOptions;
/**
* Options for retrieval.

@@ -112,0 +135,0 @@ **/

@@ -21,2 +21,3 @@ import { isFileSectionReferences } from '../utils.js';

'policiesOptions',
'messageTagOptions',
'presencePenalty',

@@ -23,0 +24,0 @@ 'redact',

{
"name": "@markprompt/core",
"version": "0.38.10",
"version": "0.39.0",
"repository": {

@@ -52,3 +52,3 @@ "type": "git",

"@types/defaults": "^1.0.6",
"msw": "^2.2.13"
"msw": "^2.6.2"
},

@@ -55,0 +55,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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