@promptbook/google 0.112.0-64 → 0.112.0-66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.es.js +50 -1
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/components.index.d.ts +0 -2
- package/esm/src/_packages/core.index.d.ts +2 -2
- package/esm/src/_packages/types.index.d.ts +0 -2
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/esm/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
- package/esm/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
- package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
- package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
- package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
- package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
- package/esm/src/book-components/Chat/types/ChatMessage.d.ts +0 -34
- package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -11
- package/esm/src/commitments/_common/toolRuntimeContext.d.ts +0 -6
- package/esm/src/config.d.ts +3 -3
- package/esm/src/formfactors/index.d.ts +2 -2
- package/esm/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
- package/esm/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +0 -4
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +0 -9
- package/esm/src/utils/files/getPromptbookTempPath.d.ts +24 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +53 -5
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/components.index.d.ts +0 -2
- package/umd/src/_packages/core.index.d.ts +2 -2
- package/umd/src/_packages/types.index.d.ts +0 -2
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
- package/umd/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
- package/umd/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
- package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
- package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
- package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
- package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
- package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts +1 -0
- package/umd/src/book-components/Chat/types/ChatMessage.d.ts +0 -34
- package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
- package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -11
- package/umd/src/commitments/_common/toolRuntimeContext.d.ts +0 -6
- package/umd/src/config.d.ts +3 -3
- package/umd/src/formfactors/index.d.ts +2 -2
- package/umd/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
- package/umd/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +0 -4
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +0 -9
- package/umd/src/utils/files/getPromptbookTempPath.d.ts +24 -0
- package/umd/src/utils/files/getPromptbookTempPath.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
- /package/esm/src/{commitments/KNOWLEDGE/KNOWLEDGE.test.d.ts → book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts} +0 -0
- /package/{umd/src/commitments/KNOWLEDGE/KNOWLEDGE.test.d.ts → esm/src/utils/files/getPromptbookTempPath.test.d.ts} +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal commitment shape used by documentation renderers.
|
|
3
|
+
*
|
|
4
|
+
* @private internal utility of `createStandaloneBookLanguageMarkdown`
|
|
5
|
+
*/
|
|
6
|
+
type CommitmentDocumentationSource = {
|
|
7
|
+
/**
|
|
8
|
+
* Canonical commitment keyword.
|
|
9
|
+
*/
|
|
10
|
+
readonly type: string;
|
|
11
|
+
/**
|
|
12
|
+
* Full markdown documentation block, including the top-level heading.
|
|
13
|
+
*/
|
|
14
|
+
readonly documentation: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Grouped commitment metadata consumed by the docs renderer.
|
|
18
|
+
*
|
|
19
|
+
* @private internal utility of `createStandaloneBookLanguageMarkdown`
|
|
20
|
+
*/
|
|
21
|
+
type GroupedCommitmentDocumentationSource = {
|
|
22
|
+
/**
|
|
23
|
+
* Primary commitment shown in the docs entry.
|
|
24
|
+
*/
|
|
25
|
+
readonly primary: CommitmentDocumentationSource;
|
|
26
|
+
/**
|
|
27
|
+
* Aliases grouped under the same docs entry.
|
|
28
|
+
*/
|
|
29
|
+
readonly aliases: ReadonlyArray<string>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Renders the documentation body for one grouped commitment entry.
|
|
33
|
+
*
|
|
34
|
+
* `OPEN` and `CLOSED` are intentionally rendered together so the documentation
|
|
35
|
+
* surfaces present them as one conceptual switch instead of two isolated pages.
|
|
36
|
+
*
|
|
37
|
+
* @param group - Grouped commitment metadata.
|
|
38
|
+
* @returns Markdown body for the docs page/catalog entry.
|
|
39
|
+
*
|
|
40
|
+
* @private internal utility of `createStandaloneBookLanguageMarkdown`
|
|
41
|
+
*/
|
|
42
|
+
export declare function renderGroupedCommitmentDocumentationMarkdown(group: GroupedCommitmentDocumentationSource): string;
|
|
43
|
+
export {};
|
|
@@ -58,36 +58,6 @@ export type ChatProgressCard = {
|
|
|
58
58
|
*/
|
|
59
59
|
readonly isVisible?: boolean;
|
|
60
60
|
};
|
|
61
|
-
/**
|
|
62
|
-
* Source used by an assistant message.
|
|
63
|
-
*
|
|
64
|
-
* This is used for knowledge-search results and other RAG systems that can
|
|
65
|
-
* attach structured source metadata independently of inline citation markers.
|
|
66
|
-
*
|
|
67
|
-
* @public exported from `@promptbook/components`
|
|
68
|
-
*/
|
|
69
|
-
export type ChatMessageSource = {
|
|
70
|
-
/**
|
|
71
|
-
* The unique identifier for the source citation (e.g., "0:0")
|
|
72
|
-
*/
|
|
73
|
-
readonly id: string;
|
|
74
|
-
/**
|
|
75
|
-
* The source document name (e.g., "document.pdf")
|
|
76
|
-
*/
|
|
77
|
-
readonly source: string;
|
|
78
|
-
/**
|
|
79
|
-
* Optional URL to the source document
|
|
80
|
-
*/
|
|
81
|
-
readonly url?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Optional preview/excerpt from the source
|
|
84
|
-
*/
|
|
85
|
-
readonly excerpt?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Optional retrieval score.
|
|
88
|
-
*/
|
|
89
|
-
readonly score?: number;
|
|
90
|
-
};
|
|
91
61
|
/**
|
|
92
62
|
* Serialized reference to an earlier chat message quoted by a reply bubble.
|
|
93
63
|
*
|
|
@@ -285,10 +255,6 @@ export type ChatMessage = Omit<Message<id>, 'direction' | 'recipients' | 'thread
|
|
|
285
255
|
*/
|
|
286
256
|
excerpt?: string;
|
|
287
257
|
}>;
|
|
288
|
-
/**
|
|
289
|
-
* Optional structured sources used to produce this message.
|
|
290
|
-
*/
|
|
291
|
-
readonly sources?: ReadonlyArray<ChatMessageSource>;
|
|
292
258
|
/**
|
|
293
259
|
* Optional structured progress-card payload shown while a response is still in progress.
|
|
294
260
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InitializationStatus } from './boilerplateTemplates';
|
|
2
2
|
/**
|
|
3
|
-
* Ensures `.gitignore` contains the
|
|
3
|
+
* Ensures `.gitignore` contains the shared Promptbook working-directory entry.
|
|
4
4
|
*
|
|
5
5
|
* @private function of `initializeCoderProjectConfiguration`
|
|
6
6
|
*/
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import type { string_javascript_name } from '../../_packages/types.index';
|
|
2
1
|
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
3
2
|
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
4
|
-
/**
|
|
5
|
-
* Name of the tool used by agents to search configured `KNOWLEDGE` sources.
|
|
6
|
-
*
|
|
7
|
-
* @public exported from `@promptbook/core`
|
|
8
|
-
*/
|
|
9
|
-
export declare const KNOWLEDGE_SEARCH_TOOL_NAME: string;
|
|
10
3
|
/**
|
|
11
4
|
* KNOWLEDGE commitment definition
|
|
12
5
|
*
|
|
@@ -44,8 +37,4 @@ export declare class KnowledgeCommitmentDefinition extends BaseCommitmentDefinit
|
|
|
44
37
|
*/
|
|
45
38
|
get documentation(): string;
|
|
46
39
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
47
|
-
/**
|
|
48
|
-
* Gets human-readable titles for tool functions provided by this commitment.
|
|
49
|
-
*/
|
|
50
|
-
getToolTitles(): Record<string_javascript_name, string>;
|
|
51
40
|
}
|
|
@@ -98,12 +98,6 @@ export type ToolRuntimeContext = {
|
|
|
98
98
|
localServerUrl?: string;
|
|
99
99
|
teamInternalAccessToken?: string;
|
|
100
100
|
};
|
|
101
|
-
knowledge?: {
|
|
102
|
-
/**
|
|
103
|
-
* Final materialized knowledge sources available to the current agent.
|
|
104
|
-
*/
|
|
105
|
-
sources?: string[];
|
|
106
|
-
};
|
|
107
101
|
spawn?: {
|
|
108
102
|
depth?: number;
|
|
109
103
|
parentRunId?: string;
|
package/esm/src/config.d.ts
CHANGED
|
@@ -270,7 +270,7 @@ export declare const DEFAULT_AGENTS_DIRNAME = "./agents";
|
|
|
270
270
|
*
|
|
271
271
|
* @public exported from `@promptbook/core`
|
|
272
272
|
*/
|
|
273
|
-
export declare const DEFAULT_DOWNLOAD_CACHE_DIRNAME
|
|
273
|
+
export declare const DEFAULT_DOWNLOAD_CACHE_DIRNAME: string;
|
|
274
274
|
/**
|
|
275
275
|
* Where to store the cache of executions for promptbook CLI
|
|
276
276
|
*
|
|
@@ -278,7 +278,7 @@ export declare const DEFAULT_DOWNLOAD_CACHE_DIRNAME = "./.promptbook/download-ca
|
|
|
278
278
|
*
|
|
279
279
|
* @public exported from `@promptbook/core`
|
|
280
280
|
*/
|
|
281
|
-
export declare const DEFAULT_EXECUTION_CACHE_DIRNAME
|
|
281
|
+
export declare const DEFAULT_EXECUTION_CACHE_DIRNAME: string;
|
|
282
282
|
/**
|
|
283
283
|
* Where to store the scrape cache
|
|
284
284
|
*
|
|
@@ -286,7 +286,7 @@ export declare const DEFAULT_EXECUTION_CACHE_DIRNAME = "./.promptbook/execution-
|
|
|
286
286
|
*
|
|
287
287
|
* @public exported from `@promptbook/core`
|
|
288
288
|
*/
|
|
289
|
-
export declare const DEFAULT_SCRAPE_CACHE_DIRNAME
|
|
289
|
+
export declare const DEFAULT_SCRAPE_CACHE_DIRNAME: string;
|
|
290
290
|
/**
|
|
291
291
|
* Id of application for the CLI when using remote server
|
|
292
292
|
*
|
|
@@ -52,7 +52,7 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
52
52
|
};
|
|
53
53
|
}, {
|
|
54
54
|
readonly name: "TRANSLATOR";
|
|
55
|
-
readonly description:
|
|
55
|
+
readonly description: string;
|
|
56
56
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/175";
|
|
57
57
|
readonly pipelineInterface: {
|
|
58
58
|
readonly inputParameters: readonly [{
|
|
@@ -89,7 +89,7 @@ export declare const FORMFACTOR_DEFINITIONS: readonly [{
|
|
|
89
89
|
};
|
|
90
90
|
}, {
|
|
91
91
|
readonly name: "EXPERIMENTAL_MATCHER";
|
|
92
|
-
readonly description:
|
|
92
|
+
readonly description: string;
|
|
93
93
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/177";
|
|
94
94
|
readonly pipelineInterface: {
|
|
95
95
|
readonly inputParameters: readonly [{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const MatcherFormfactorDefinition: {
|
|
9
9
|
readonly name: "EXPERIMENTAL_MATCHER";
|
|
10
|
-
readonly description:
|
|
10
|
+
readonly description: string;
|
|
11
11
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/177";
|
|
12
12
|
readonly pipelineInterface: {
|
|
13
13
|
readonly inputParameters: readonly [{
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const TranslatorFormfactorDefinition: {
|
|
8
8
|
readonly name: "TRANSLATOR";
|
|
9
|
-
readonly description:
|
|
9
|
+
readonly description: string;
|
|
10
10
|
readonly documentationUrl: "https://github.com/webgptorg/promptbook/discussions/175";
|
|
11
11
|
readonly pipelineInterface: {
|
|
12
12
|
readonly inputParameters: readonly [{
|
|
@@ -178,10 +178,6 @@ export declare class OpenAiAgentKitExecutionTools extends OpenAiVectorStoreHandl
|
|
|
178
178
|
* Returns AgentKit-specific options.
|
|
179
179
|
*/
|
|
180
180
|
private get agentKitOptions();
|
|
181
|
-
/**
|
|
182
|
-
* Returns true when hosted OpenAI vector-store search should back `knowledgeSources`.
|
|
183
|
-
*/
|
|
184
|
-
private get isNativeKnowledgeSearchEnabled();
|
|
185
181
|
/**
|
|
186
182
|
* Discriminant for type guards.
|
|
187
183
|
*/
|
|
@@ -12,13 +12,4 @@ export type OpenAiAgentKitExecutionToolsOptions = OpenAiVectorStoreHandlerOption
|
|
|
12
12
|
* @default gpt-5.2
|
|
13
13
|
*/
|
|
14
14
|
readonly agentKitModelName?: string_model_name;
|
|
15
|
-
/**
|
|
16
|
-
* Enables OpenAI hosted vector-store file search for `knowledgeSources`.
|
|
17
|
-
*
|
|
18
|
-
* Agents Server sets this to `false` because it uses a DB-backed LlamaIndex
|
|
19
|
-
* implementation exposed through the `knowledge_search` tool instead.
|
|
20
|
-
*
|
|
21
|
-
* @default true
|
|
22
|
-
*/
|
|
23
|
-
readonly isNativeKnowledgeSearchEnabled?: boolean;
|
|
24
15
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds one project-relative path inside the shared Promptbook working directory.
|
|
3
|
+
*
|
|
4
|
+
* @private internal utility for Promptbook-owned temp files
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPromptbookTempPath(...pathSegments: ReadonlyArray<string>): string;
|
|
7
|
+
/**
|
|
8
|
+
* Builds one absolute filesystem path inside the shared Promptbook working directory for a project root.
|
|
9
|
+
*
|
|
10
|
+
* @private internal utility for Promptbook-owned temp files
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolvePromptbookTempPath(projectPath: string, ...pathSegments: ReadonlyArray<string>): string;
|
|
13
|
+
/**
|
|
14
|
+
* Builds one POSIX path fragment inside the shared Promptbook working directory for globs and generated text files.
|
|
15
|
+
*
|
|
16
|
+
* @private internal utility for Promptbook-owned temp files
|
|
17
|
+
*/
|
|
18
|
+
export declare function getPromptbookTempPosixPath(...pathSegments: ReadonlyArray<string>): string;
|
|
19
|
+
/**
|
|
20
|
+
* Builds one rooted `.gitignore` rule targeting a path inside the shared Promptbook working directory.
|
|
21
|
+
*
|
|
22
|
+
* @private internal utility for Promptbook-owned temp files
|
|
23
|
+
*/
|
|
24
|
+
export declare function getPromptbookTempGitignoreRule(...pathSegments: ReadonlyArray<string>): string;
|
package/esm/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-65`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/google",
|
|
3
|
-
"version": "0.112.0-
|
|
3
|
+
"version": "0.112.0-66",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"types": "./esm/src/_packages/google.index.d.ts",
|
|
100
100
|
"typings": "./esm/src/_packages/google.index.d.ts",
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"@promptbook/core": "0.112.0-
|
|
102
|
+
"@promptbook/core": "0.112.0-66"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@ai-sdk/google": "1.0.17",
|
package/umd/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('crypto'), require('spacetrim'), require('colors')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'crypto', 'spacetrim', 'colors'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-google"] = {}, global.crypto, global.spacetrim, global.colors));
|
|
5
|
-
})(this, (function (exports, crypto, spacetrim, colors) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('crypto'), require('spacetrim'), require('path'), require('colors')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'crypto', 'spacetrim', 'path', 'colors'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-google"] = {}, global.crypto, global.spacetrim, global.path, global.colors));
|
|
5
|
+
})(this, (function (exports, crypto, spacetrim, path, colors) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* @generated
|
|
23
23
|
* @see https://github.com/webgptorg/promptbook
|
|
24
24
|
*/
|
|
25
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
25
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-66';
|
|
26
26
|
/**
|
|
27
27
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
28
28
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1511,6 +1511,29 @@
|
|
|
1511
1511
|
}
|
|
1512
1512
|
// TODO: Maybe implement by mix+hsl
|
|
1513
1513
|
|
|
1514
|
+
/**
|
|
1515
|
+
* Relative directory name without the `./` prefix for Git ignore rules and glob patterns.
|
|
1516
|
+
*
|
|
1517
|
+
* @private internal utility for Promptbook-owned temp files
|
|
1518
|
+
*/
|
|
1519
|
+
const PROMPTBOOK_TEMP_DIRECTORY_NAME = '.promptbook';
|
|
1520
|
+
/**
|
|
1521
|
+
* Builds one project-relative path inside the shared Promptbook working directory.
|
|
1522
|
+
*
|
|
1523
|
+
* @private internal utility for Promptbook-owned temp files
|
|
1524
|
+
*/
|
|
1525
|
+
function getPromptbookTempPath(...pathSegments) {
|
|
1526
|
+
return `./${getPromptbookTempPosixPath(...pathSegments)}`;
|
|
1527
|
+
}
|
|
1528
|
+
/**
|
|
1529
|
+
* Builds one POSIX path fragment inside the shared Promptbook working directory for globs and generated text files.
|
|
1530
|
+
*
|
|
1531
|
+
* @private internal utility for Promptbook-owned temp files
|
|
1532
|
+
*/
|
|
1533
|
+
function getPromptbookTempPosixPath(...pathSegments) {
|
|
1534
|
+
return path.posix.join(PROMPTBOOK_TEMP_DIRECTORY_NAME, ...pathSegments);
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1514
1537
|
/**
|
|
1515
1538
|
* Name for the Promptbook
|
|
1516
1539
|
*
|
|
@@ -1605,6 +1628,31 @@
|
|
|
1605
1628
|
* @public exported from `@promptbook/utils`
|
|
1606
1629
|
*/
|
|
1607
1630
|
const SMALL_NUMBER = 0.001;
|
|
1631
|
+
// <- TODO: [🕝] Make also `AGENTS_DIRNAME_ALTERNATIVES`
|
|
1632
|
+
/**
|
|
1633
|
+
* Where to store the temporary downloads
|
|
1634
|
+
*
|
|
1635
|
+
* Note: When the folder does not exist, it is created recursively
|
|
1636
|
+
*
|
|
1637
|
+
* @public exported from `@promptbook/core`
|
|
1638
|
+
*/
|
|
1639
|
+
getPromptbookTempPath('download-cache');
|
|
1640
|
+
/**
|
|
1641
|
+
* Where to store the cache of executions for promptbook CLI
|
|
1642
|
+
*
|
|
1643
|
+
* Note: When the folder does not exist, it is created recursively
|
|
1644
|
+
*
|
|
1645
|
+
* @public exported from `@promptbook/core`
|
|
1646
|
+
*/
|
|
1647
|
+
getPromptbookTempPath('execution-cache');
|
|
1648
|
+
/**
|
|
1649
|
+
* Where to store the scrape cache
|
|
1650
|
+
*
|
|
1651
|
+
* Note: When the folder does not exist, it is created recursively
|
|
1652
|
+
*
|
|
1653
|
+
* @public exported from `@promptbook/core`
|
|
1654
|
+
*/
|
|
1655
|
+
getPromptbookTempPath('scrape-cache');
|
|
1608
1656
|
// <- TODO: [🧜♂️]
|
|
1609
1657
|
/**
|
|
1610
1658
|
* Default settings for parsing and generating CSV files in Promptbook.
|