@promptbook/browser 0.114.0-25 → 0.114.0-27
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 +18 -9
- package/esm/index.es.js.map +1 -1
- package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
- package/esm/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +26 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +5 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
- package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
- package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
- package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
- 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 +2 -2
- package/umd/index.umd.js +18 -9
- package/umd/index.umd.js.map +1 -1
- package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
- package/umd/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
- package/umd/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +26 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +5 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
- package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
- package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
- package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
- 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/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
- package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
package/esm/index.es.js
CHANGED
|
@@ -26,7 +26,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
26
26
|
* @generated
|
|
27
27
|
* @see https://github.com/webgptorg/promptbook
|
|
28
28
|
*/
|
|
29
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.114.0-
|
|
29
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.114.0-27';
|
|
30
30
|
/**
|
|
31
31
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
32
32
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -17035,29 +17035,36 @@ class UseUserLocationCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
17035
17035
|
/**
|
|
17036
17036
|
* `WRITING RULES` commitment definition.
|
|
17037
17037
|
*
|
|
17038
|
-
*
|
|
17039
|
-
* rather than task-solving behavior.
|
|
17038
|
+
* The `WRITING RULES`/`WRITING RULE` commitment adds constraints that apply strictly to writing style
|
|
17039
|
+
* and presentation rather than task-solving behavior.
|
|
17040
|
+
*
|
|
17041
|
+
* Example usage in agent source:
|
|
17042
|
+
*
|
|
17043
|
+
* ```book
|
|
17044
|
+
* WRITING RULES Keep every response under 120 words
|
|
17045
|
+
* WRITING RULE Always end the message with an emoji
|
|
17046
|
+
* ```
|
|
17040
17047
|
*
|
|
17041
17048
|
* @private [🪔] Maybe export the commitments through some package
|
|
17042
17049
|
*/
|
|
17043
17050
|
class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition {
|
|
17044
|
-
constructor() {
|
|
17045
|
-
super(
|
|
17051
|
+
constructor(type = 'WRITING RULES') {
|
|
17052
|
+
super(type);
|
|
17046
17053
|
}
|
|
17047
17054
|
/**
|
|
17048
|
-
* Short one-line description of `WRITING RULES`.
|
|
17055
|
+
* Short one-line description of `WRITING RULES`/`WRITING RULE`.
|
|
17049
17056
|
*/
|
|
17050
17057
|
get description() {
|
|
17051
17058
|
return 'Add writing-only constraints such as tone, length, formatting, or emoji usage.';
|
|
17052
17059
|
}
|
|
17053
17060
|
/**
|
|
17054
|
-
* Icon for `WRITING RULES`.
|
|
17061
|
+
* Icon for `WRITING RULES`/`WRITING RULE`.
|
|
17055
17062
|
*/
|
|
17056
17063
|
get icon() {
|
|
17057
17064
|
return '📝';
|
|
17058
17065
|
}
|
|
17059
17066
|
/**
|
|
17060
|
-
* Markdown documentation for `WRITING RULES
|
|
17067
|
+
* Markdown documentation for `WRITING RULES`/`WRITING RULE` commitment.
|
|
17061
17068
|
*/
|
|
17062
17069
|
get documentation() {
|
|
17063
17070
|
return spaceTrim$1(`
|
|
@@ -17067,6 +17074,7 @@ class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
17067
17074
|
|
|
17068
17075
|
## Key aspects
|
|
17069
17076
|
|
|
17077
|
+
- All writing rules are treated equally regardless of singular/plural form.
|
|
17070
17078
|
- Use it for writing-only constraints such as tone, formatting, length, emoji usage, punctuation, or reading level.
|
|
17071
17079
|
- Do **not** use it for problem-solving behavior, policy, tool usage, or decision-making logic. Use \`RULE\` for that.
|
|
17072
17080
|
- Newer writing-rules blocks override conflicting earlier writing-rules blocks.
|
|
@@ -17265,7 +17273,8 @@ const COMMITMENT_REGISTRY = [
|
|
|
17265
17273
|
new LanguageCommitmentDefinition('LANGUAGE'),
|
|
17266
17274
|
new LanguageCommitmentDefinition('LANGUAGES'),
|
|
17267
17275
|
new WritingSampleCommitmentDefinition(),
|
|
17268
|
-
new WritingRulesCommitmentDefinition(),
|
|
17276
|
+
new WritingRulesCommitmentDefinition('WRITING RULES'),
|
|
17277
|
+
new WritingRulesCommitmentDefinition('WRITING RULE'),
|
|
17269
17278
|
new SampleCommitmentDefinition('SAMPLE'),
|
|
17270
17279
|
new SampleCommitmentDefinition('EXAMPLE'),
|
|
17271
17280
|
new FormatCommitmentDefinition('FORMAT'),
|