@promptbook/cli 0.114.0-25 → 0.114.0-26
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/apps/agents-server/src/utils/agentProjects/agentProjectRuntimePm2.ts +56 -10
- package/apps/agents-server/src/utils/userChat/createImmediateUserChatAnswerModelRequirements.ts +1 -0
- package/esm/index.es.js +18 -9
- package/esm/index.es.js.map +1 -1
- package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
- package/esm/src/commitments/index.d.ts +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.ts +1 -0
- package/src/commitments/WRITING_RULES/WRITING_RULES.ts +16 -8
- package/src/commitments/index.ts +2 -1
- package/src/other/templates/getTemplatesPipelineCollection.ts +893 -961
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/index.umd.js +18 -9
- package/umd/index.umd.js.map +1 -1
- package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
- package/umd/src/commitments/index.d.ts +1 -1
- package/umd/src/version.d.ts +1 -1
package/src/version.ts
CHANGED
|
@@ -16,11 +16,11 @@ export const BOOK_LANGUAGE_VERSION: string_semantic_version = '2.0.0';
|
|
|
16
16
|
* @generated
|
|
17
17
|
* @see https://github.com/webgptorg/promptbook
|
|
18
18
|
*/
|
|
19
|
-
export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.114.0-
|
|
19
|
+
export const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version = '0.114.0-26';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Represents the version string of the Promptbook engine.
|
|
23
|
-
* It follows semantic versioning (e.g., `0.114.0-
|
|
23
|
+
* It follows semantic versioning (e.g., `0.114.0-25`).
|
|
24
24
|
*
|
|
25
25
|
* @generated
|
|
26
26
|
*/
|
package/src/versions.txt
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
* @generated
|
|
59
59
|
* @see https://github.com/webgptorg/promptbook
|
|
60
60
|
*/
|
|
61
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.114.0-
|
|
61
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.114.0-26';
|
|
62
62
|
/**
|
|
63
63
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
64
64
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -20073,29 +20073,36 @@
|
|
|
20073
20073
|
/**
|
|
20074
20074
|
* `WRITING RULES` commitment definition.
|
|
20075
20075
|
*
|
|
20076
|
-
*
|
|
20077
|
-
* rather than task-solving behavior.
|
|
20076
|
+
* The `WRITING RULES`/`WRITING RULE` commitment adds constraints that apply strictly to writing style
|
|
20077
|
+
* and presentation rather than task-solving behavior.
|
|
20078
|
+
*
|
|
20079
|
+
* Example usage in agent source:
|
|
20080
|
+
*
|
|
20081
|
+
* ```book
|
|
20082
|
+
* WRITING RULES Keep every response under 120 words
|
|
20083
|
+
* WRITING RULE Always end the message with an emoji
|
|
20084
|
+
* ```
|
|
20078
20085
|
*
|
|
20079
20086
|
* @private [🪔] Maybe export the commitments through some package
|
|
20080
20087
|
*/
|
|
20081
20088
|
class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition {
|
|
20082
|
-
constructor() {
|
|
20083
|
-
super(
|
|
20089
|
+
constructor(type = 'WRITING RULES') {
|
|
20090
|
+
super(type);
|
|
20084
20091
|
}
|
|
20085
20092
|
/**
|
|
20086
|
-
* Short one-line description of `WRITING RULES`.
|
|
20093
|
+
* Short one-line description of `WRITING RULES`/`WRITING RULE`.
|
|
20087
20094
|
*/
|
|
20088
20095
|
get description() {
|
|
20089
20096
|
return 'Add writing-only constraints such as tone, length, formatting, or emoji usage.';
|
|
20090
20097
|
}
|
|
20091
20098
|
/**
|
|
20092
|
-
* Icon for `WRITING RULES`.
|
|
20099
|
+
* Icon for `WRITING RULES`/`WRITING RULE`.
|
|
20093
20100
|
*/
|
|
20094
20101
|
get icon() {
|
|
20095
20102
|
return '📝';
|
|
20096
20103
|
}
|
|
20097
20104
|
/**
|
|
20098
|
-
* Markdown documentation for `WRITING RULES
|
|
20105
|
+
* Markdown documentation for `WRITING RULES`/`WRITING RULE` commitment.
|
|
20099
20106
|
*/
|
|
20100
20107
|
get documentation() {
|
|
20101
20108
|
return _spaceTrim.spaceTrim(`
|
|
@@ -20105,6 +20112,7 @@
|
|
|
20105
20112
|
|
|
20106
20113
|
## Key aspects
|
|
20107
20114
|
|
|
20115
|
+
- All writing rules are treated equally regardless of singular/plural form.
|
|
20108
20116
|
- Use it for writing-only constraints such as tone, formatting, length, emoji usage, punctuation, or reading level.
|
|
20109
20117
|
- Do **not** use it for problem-solving behavior, policy, tool usage, or decision-making logic. Use \`RULE\` for that.
|
|
20110
20118
|
- Newer writing-rules blocks override conflicting earlier writing-rules blocks.
|
|
@@ -20303,7 +20311,8 @@
|
|
|
20303
20311
|
new LanguageCommitmentDefinition('LANGUAGE'),
|
|
20304
20312
|
new LanguageCommitmentDefinition('LANGUAGES'),
|
|
20305
20313
|
new WritingSampleCommitmentDefinition(),
|
|
20306
|
-
new WritingRulesCommitmentDefinition(),
|
|
20314
|
+
new WritingRulesCommitmentDefinition('WRITING RULES'),
|
|
20315
|
+
new WritingRulesCommitmentDefinition('WRITING RULE'),
|
|
20307
20316
|
new SampleCommitmentDefinition('SAMPLE'),
|
|
20308
20317
|
new SampleCommitmentDefinition('EXAMPLE'),
|
|
20309
20318
|
new FormatCommitmentDefinition('FORMAT'),
|