@promptbook/types 0.50.0-12 → 0.50.0-13

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
@@ -1,2 +1,12 @@
1
+ /**
2
+ * Units of text measurement
3
+ */
4
+ var EXPECTATION_UNITS = ['CHARACTERS', 'WORDS', 'SENTENCES', 'PARAGRAPHS', 'LINES', 'PAGES'];
5
+ /**
6
+ * TODO: [💝] Unite object for expecting amount and format - remove expectFormat
7
+ * TODO: use one helper type> (string_prompt | string_javascript | string_markdown) & string_template
8
+ * TODO: [👙][🧠] Just selecting gpt3 or gpt4 level of model
9
+ */
1
10
 
11
+ export { EXPECTATION_UNITS };
2
12
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.es.js","sources":["../../../src/types/PromptbookJson/PromptTemplateJson.ts"],"sourcesContent":[null],"names":[],"mappings":"AA4CA;;;IAGa,iBAAiB,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAW;AAmH/G;;;;;;;;"}
@@ -10,7 +10,8 @@ import type { ExecutionType } from '../types/ExecutionTypes';
10
10
  import type { ModelRequirements, ModelVariant } from '../types/ModelRequirements';
11
11
  import type { Parameters } from '../types/Parameters';
12
12
  import type { Prompt } from '../types/Prompt';
13
- import type { EXPECTATION_UNITS, ExpectationAmount, Expectations, ExpectationUnit, LlmTemplateJson, PromptDialogJson, PromptTemplateJson, ScriptJson, SimpleTemplateJson } from '../types/PromptbookJson/PromptTemplateJson';
13
+ import type { ExpectationAmount, Expectations, ExpectationUnit, LlmTemplateJson, PromptDialogJson, PromptTemplateJson, ScriptJson, SimpleTemplateJson } from '../types/PromptbookJson/PromptTemplateJson';
14
+ import { EXPECTATION_UNITS } from '../types/PromptbookJson/PromptTemplateJson';
14
15
  import type { PromptTemplateParameterJson } from '../types/PromptbookJson/PromptTemplateParameterJson';
15
16
  import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
16
17
  import type { PromptbookString } from '../types/PromptbookString';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/types",
3
- "version": "0.50.0-12",
3
+ "version": "0.50.0-13",
4
4
  "description": "Library to supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -45,7 +45,7 @@
45
45
  }
46
46
  ],
47
47
  "peerDependencies": {
48
- "@promptbook/core": "0.50.0-12"
48
+ "@promptbook/core": "0.50.0-13"
49
49
  },
50
50
  "main": "./umd/index.umd.js",
51
51
  "module": "./esm/index.es.js",
package/umd/index.umd.js CHANGED
@@ -1,9 +1,22 @@
1
- (function (factory) {
2
- typeof define === 'function' && define.amd ? define(factory) :
3
- factory();
4
- })((function () { 'use strict';
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-types"] = {}));
5
+ })(this, (function (exports) { 'use strict';
5
6
 
7
+ /**
8
+ * Units of text measurement
9
+ */
10
+ var EXPECTATION_UNITS = ['CHARACTERS', 'WORDS', 'SENTENCES', 'PARAGRAPHS', 'LINES', 'PAGES'];
11
+ /**
12
+ * TODO: [💝] Unite object for expecting amount and format - remove expectFormat
13
+ * TODO: use one helper type> (string_prompt | string_javascript | string_markdown) & string_template
14
+ * TODO: [👙][🧠] Just selecting gpt3 or gpt4 level of model
15
+ */
6
16
 
17
+ exports.EXPECTATION_UNITS = EXPECTATION_UNITS;
18
+
19
+ Object.defineProperty(exports, '__esModule', { value: true });
7
20
 
8
21
  }));
9
22
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"file":"index.umd.js","sources":["../../../src/types/PromptbookJson/PromptTemplateJson.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;IA4CA;;;QAGa,iBAAiB,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAW;IAmH/G;;;;;;;;;;;;;;"}
@@ -10,7 +10,8 @@ import type { ExecutionType } from '../types/ExecutionTypes';
10
10
  import type { ModelRequirements, ModelVariant } from '../types/ModelRequirements';
11
11
  import type { Parameters } from '../types/Parameters';
12
12
  import type { Prompt } from '../types/Prompt';
13
- import type { EXPECTATION_UNITS, ExpectationAmount, Expectations, ExpectationUnit, LlmTemplateJson, PromptDialogJson, PromptTemplateJson, ScriptJson, SimpleTemplateJson } from '../types/PromptbookJson/PromptTemplateJson';
13
+ import type { ExpectationAmount, Expectations, ExpectationUnit, LlmTemplateJson, PromptDialogJson, PromptTemplateJson, ScriptJson, SimpleTemplateJson } from '../types/PromptbookJson/PromptTemplateJson';
14
+ import { EXPECTATION_UNITS } from '../types/PromptbookJson/PromptTemplateJson';
14
15
  import type { PromptTemplateParameterJson } from '../types/PromptbookJson/PromptTemplateParameterJson';
15
16
  import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
16
17
  import type { PromptbookString } from '../types/PromptbookString';