@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.
Files changed (55) hide show
  1. package/esm/index.es.js +50 -1
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/_packages/components.index.d.ts +0 -2
  4. package/esm/src/_packages/core.index.d.ts +2 -2
  5. package/esm/src/_packages/types.index.d.ts +0 -2
  6. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  7. package/esm/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
  8. package/esm/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
  9. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  10. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  11. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  12. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  13. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  14. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +0 -34
  15. package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
  16. package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -11
  17. package/esm/src/commitments/_common/toolRuntimeContext.d.ts +0 -6
  18. package/esm/src/config.d.ts +3 -3
  19. package/esm/src/formfactors/index.d.ts +2 -2
  20. package/esm/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  21. package/esm/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  22. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +0 -4
  23. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +0 -9
  24. package/esm/src/utils/files/getPromptbookTempPath.d.ts +24 -0
  25. package/esm/src/version.d.ts +1 -1
  26. package/package.json +2 -2
  27. package/umd/index.umd.js +53 -5
  28. package/umd/index.umd.js.map +1 -1
  29. package/umd/src/_packages/components.index.d.ts +0 -2
  30. package/umd/src/_packages/core.index.d.ts +2 -2
  31. package/umd/src/_packages/types.index.d.ts +0 -2
  32. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  33. package/umd/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
  34. package/umd/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
  35. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  36. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  37. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  38. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  39. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  40. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts +1 -0
  41. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +0 -34
  42. package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
  43. package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -11
  44. package/umd/src/commitments/_common/toolRuntimeContext.d.ts +0 -6
  45. package/umd/src/config.d.ts +3 -3
  46. package/umd/src/formfactors/index.d.ts +2 -2
  47. package/umd/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  48. package/umd/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  49. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +0 -4
  50. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +0 -9
  51. package/umd/src/utils/files/getPromptbookTempPath.d.ts +24 -0
  52. package/umd/src/utils/files/getPromptbookTempPath.test.d.ts +1 -0
  53. package/umd/src/version.d.ts +1 -1
  54. /package/esm/src/{commitments/KNOWLEDGE/KNOWLEDGE.test.d.ts → book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts} +0 -0
  55. /package/{umd/src/commitments/KNOWLEDGE/KNOWLEDGE.test.d.ts → esm/src/utils/files/getPromptbookTempPath.test.d.ts} +0 -0
@@ -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 standalone Promptbook coder temp and cache entries.
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;
@@ -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 = "./.promptbook/download-cache";
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 = "./.promptbook/execution-cache";
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 = "./.promptbook/scrape-cache";
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: "A text transformation system that converts input content into different forms,\n including language translations, paraphrasing, style conversions, and tone adjustments.\n This form factor takes one input and produces one transformed output.";
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: "An evaluation system that determines whether content meets specific criteria or patterns.\n Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.";
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: "An evaluation system that determines whether content meets specific criteria or patterns.\n Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.";
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: "A text transformation system that converts input content into different forms,\n including language translations, paraphrasing, style conversions, and tone adjustments.\n This form factor takes one input and produces one transformed output.";
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;
@@ -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-63`).
18
+ * It follows semantic versioning (e.g., `0.112.0-65`).
19
19
  *
20
20
  * @generated
21
21
  */