@promptbook/markitdown 0.103.0-48 → 0.103.0-49
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 +22 -4
- package/esm/index.es.js.map +1 -1
- package/esm/typings/servers.d.ts +1 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +12 -2
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +14 -8
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions.d.ts +10 -0
- package/esm/typings/src/commitments/MESSAGE/InitialMessageCommitmentDefinition.d.ts +28 -0
- package/esm/typings/src/commitments/index.d.ts +2 -1
- package/esm/typings/src/config.d.ts +1 -0
- package/esm/typings/src/errors/DatabaseError.d.ts +2 -2
- package/esm/typings/src/errors/WrappedError.d.ts +2 -2
- package/esm/typings/src/execution/ExecutionTask.d.ts +2 -2
- package/esm/typings/src/execution/LlmExecutionTools.d.ts +6 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +2 -2
- package/esm/typings/src/llm-providers/agent/Agent.d.ts +11 -3
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +6 -1
- package/esm/typings/src/llm-providers/agent/RemoteAgent.d.ts +6 -2
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +6 -1
- package/esm/typings/src/remote-server/startAgentServer.d.ts +2 -2
- package/esm/typings/src/utils/color/Color.d.ts +7 -0
- package/esm/typings/src/utils/color/Color.test.d.ts +1 -0
- package/esm/typings/src/utils/environment/$getGlobalScope.d.ts +2 -2
- package/esm/typings/src/utils/misc/computeHash.d.ts +11 -0
- package/esm/typings/src/utils/misc/computeHash.test.d.ts +1 -0
- package/esm/typings/src/utils/organization/$sideEffect.d.ts +2 -2
- package/esm/typings/src/utils/organization/$side_effect.d.ts +2 -2
- package/esm/typings/src/utils/organization/TODO_USE.d.ts +2 -2
- package/esm/typings/src/utils/organization/keepUnused.d.ts +2 -2
- package/esm/typings/src/utils/organization/preserve.d.ts +3 -3
- package/esm/typings/src/utils/organization/really_any.d.ts +7 -0
- package/esm/typings/src/utils/serialization/asSerializable.d.ts +2 -2
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +22 -4
- package/umd/index.umd.js.map +1 -1
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @generated
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
27
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-49';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -377,6 +377,9 @@
|
|
|
377
377
|
if (hex.length === 3) {
|
|
378
378
|
return Color.fromHex3(hex);
|
|
379
379
|
}
|
|
380
|
+
if (hex.length === 4) {
|
|
381
|
+
return Color.fromHex4(hex);
|
|
382
|
+
}
|
|
380
383
|
if (hex.length === 6) {
|
|
381
384
|
return Color.fromHex6(hex);
|
|
382
385
|
}
|
|
@@ -397,6 +400,19 @@
|
|
|
397
400
|
const b = parseInt(hex.substr(2, 1), 16) * 16;
|
|
398
401
|
return take(new Color(r, g, b));
|
|
399
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* Creates a new Color instance from color in hex format with 4 digits (with alpha channel)
|
|
405
|
+
*
|
|
406
|
+
* @param color in hex for example `09df`
|
|
407
|
+
* @returns Color object
|
|
408
|
+
*/
|
|
409
|
+
static fromHex4(hex) {
|
|
410
|
+
const r = parseInt(hex.substr(0, 1), 16) * 16;
|
|
411
|
+
const g = parseInt(hex.substr(1, 1), 16) * 16;
|
|
412
|
+
const b = parseInt(hex.substr(2, 1), 16) * 16;
|
|
413
|
+
const a = parseInt(hex.substr(3, 1), 16) * 16;
|
|
414
|
+
return take(new Color(r, g, b, a));
|
|
415
|
+
}
|
|
400
416
|
/**
|
|
401
417
|
* Creates a new Color instance from color in hex format with 6 color digits (without alpha channel)
|
|
402
418
|
*
|
|
@@ -587,7 +603,8 @@
|
|
|
587
603
|
* @returns true if the value is a valid hex color string (e.g., `#009edd`, `#fff`, etc.)
|
|
588
604
|
*/
|
|
589
605
|
static isHexColorString(value) {
|
|
590
|
-
return typeof value === 'string' &&
|
|
606
|
+
return (typeof value === 'string' &&
|
|
607
|
+
/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(value));
|
|
591
608
|
}
|
|
592
609
|
/**
|
|
593
610
|
* Creates new Color object
|
|
@@ -914,6 +931,7 @@
|
|
|
914
931
|
({
|
|
915
932
|
TITLE: Color.fromHex('#244EA8'),
|
|
916
933
|
LINE: Color.fromHex('#eeeeee'),
|
|
934
|
+
SEPARATOR: Color.fromHex('#cccccc'),
|
|
917
935
|
COMMITMENT: Color.fromHex('#DA0F78'),
|
|
918
936
|
PARAMETER: Color.fromHex('#8e44ad'),
|
|
919
937
|
});
|
|
@@ -2247,7 +2265,7 @@
|
|
|
2247
2265
|
TODO: [🧠] Is there a better implementation?
|
|
2248
2266
|
> const propertyNames = Object.getOwnPropertyNames(objectValue);
|
|
2249
2267
|
> for (const propertyName of propertyNames) {
|
|
2250
|
-
> const value = (objectValue as
|
|
2268
|
+
> const value = (objectValue as chococake)[propertyName];
|
|
2251
2269
|
> if (value && typeof value === 'object') {
|
|
2252
2270
|
> deepClone(value);
|
|
2253
2271
|
> }
|
|
@@ -3094,7 +3112,7 @@
|
|
|
3094
3112
|
}
|
|
3095
3113
|
}
|
|
3096
3114
|
/**
|
|
3097
|
-
* TODO:
|
|
3115
|
+
* TODO: [🐱🚀] Explain that NotFoundError ([🐱🚀] and other specific errors) has priority over DatabaseError in some contexts
|
|
3098
3116
|
*/
|
|
3099
3117
|
|
|
3100
3118
|
/**
|