@promptbook/editable 0.112.0-57 → 0.112.0-59

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 CHANGED
@@ -17,7 +17,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
17
17
  * @generated
18
18
  * @see https://github.com/webgptorg/promptbook
19
19
  */
20
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-57';
20
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-59';
21
21
  /**
22
22
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
23
23
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -96,6 +96,32 @@ export declare abstract class BaseCommitmentDefinition<TBookCommitment extends s
96
96
  * but can be useful for organizing and structuring the message during processing
97
97
  */
98
98
  protected addCommentSection(requirements: AgentModelRequirements, commentTitle: string, content: string, position?: 'beginning' | 'end'): AgentModelRequirements;
99
+ /**
100
+ * Helper method to append a bullet point to an existing `## SectionTitle` section in the system
101
+ * message, or to create a new section when it does not yet exist.
102
+ *
103
+ * Handles the case where the same commitment type appears multiple times in the book source and
104
+ * all entries should be grouped under one shared heading rather than emitting a duplicate block.
105
+ *
106
+ * @param requirements - Current model requirements.
107
+ * @param sectionTitle - Section title without the `##` prefix.
108
+ * @param bulletContent - Bullet content without the leading `- ` prefix.
109
+ * @returns Requirements with the bullet appended to the section.
110
+ */
111
+ protected appendBulletPointToSection(requirements: AgentModelRequirements, sectionTitle: string, bulletContent: string): AgentModelRequirements;
112
+ /**
113
+ * Helper method to replace an existing `## SectionTitle` section in the system message, or to
114
+ * append a new one when the section does not yet exist.
115
+ *
116
+ * Use this when a commitment type can appear multiple times and each subsequent occurrence should
117
+ * update the single shared section rather than appending a duplicate block.
118
+ *
119
+ * @param requirements - Current model requirements.
120
+ * @param sectionTitle - Section title without the `##` prefix.
121
+ * @param sectionContent - Full section content including the `## Title` header line.
122
+ * @returns Requirements with the section replaced or appended.
123
+ */
124
+ protected replaceOrCreateSection(requirements: AgentModelRequirements, sectionTitle: string, sectionContent: string): AgentModelRequirements;
99
125
  /**
100
126
  * Gets tool function implementations provided by this commitment
101
127
  *
@@ -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-56`).
18
+ * It follows semantic versioning (e.g., `0.112.0-58`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/editable",
3
- "version": "0.112.0-57",
3
+ "version": "0.112.0-59",
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/editable.index.d.ts",
100
100
  "typings": "./esm/src/_packages/editable.index.d.ts",
101
101
  "peerDependencies": {
102
- "@promptbook/core": "0.112.0-57"
102
+ "@promptbook/core": "0.112.0-59"
103
103
  },
104
104
  "dependencies": {
105
105
  "crypto-js": "4.2.0",
package/umd/index.umd.js CHANGED
@@ -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-57';
25
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-59';
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
@@ -96,6 +96,32 @@ export declare abstract class BaseCommitmentDefinition<TBookCommitment extends s
96
96
  * but can be useful for organizing and structuring the message during processing
97
97
  */
98
98
  protected addCommentSection(requirements: AgentModelRequirements, commentTitle: string, content: string, position?: 'beginning' | 'end'): AgentModelRequirements;
99
+ /**
100
+ * Helper method to append a bullet point to an existing `## SectionTitle` section in the system
101
+ * message, or to create a new section when it does not yet exist.
102
+ *
103
+ * Handles the case where the same commitment type appears multiple times in the book source and
104
+ * all entries should be grouped under one shared heading rather than emitting a duplicate block.
105
+ *
106
+ * @param requirements - Current model requirements.
107
+ * @param sectionTitle - Section title without the `##` prefix.
108
+ * @param bulletContent - Bullet content without the leading `- ` prefix.
109
+ * @returns Requirements with the bullet appended to the section.
110
+ */
111
+ protected appendBulletPointToSection(requirements: AgentModelRequirements, sectionTitle: string, bulletContent: string): AgentModelRequirements;
112
+ /**
113
+ * Helper method to replace an existing `## SectionTitle` section in the system message, or to
114
+ * append a new one when the section does not yet exist.
115
+ *
116
+ * Use this when a commitment type can appear multiple times and each subsequent occurrence should
117
+ * update the single shared section rather than appending a duplicate block.
118
+ *
119
+ * @param requirements - Current model requirements.
120
+ * @param sectionTitle - Section title without the `##` prefix.
121
+ * @param sectionContent - Full section content including the `## Title` header line.
122
+ * @returns Requirements with the section replaced or appended.
123
+ */
124
+ protected replaceOrCreateSection(requirements: AgentModelRequirements, sectionTitle: string, sectionContent: string): AgentModelRequirements;
99
125
  /**
100
126
  * Gets tool function implementations provided by this commitment
101
127
  *
@@ -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-56`).
18
+ * It follows semantic versioning (e.g., `0.112.0-58`).
19
19
  *
20
20
  * @generated
21
21
  */