@botpress/runtime 1.13.17 → 1.13.18
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/dist/definition.js +3 -1
- package/dist/definition.js.map +2 -2
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +2 -2
- package/dist/library.d.ts +1 -0
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +5 -1
- package/dist/library.js.map +2 -2
- package/dist/primitives/data-sources/index.d.ts +2 -1
- package/dist/primitives/data-sources/index.d.ts.map +1 -1
- package/dist/primitives/index.d.ts +5 -1
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/runtime.js +68 -66
- package/dist/runtime.js.map +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSource as DataSourceBase, createSyncWorkflow } from './source-base';
|
|
1
|
+
import { DataSource as DataSourceBase, createSyncWorkflow, Item, SyncInput, SyncOutput } from './source-base';
|
|
2
2
|
import { TableSource } from './source-table';
|
|
3
3
|
import { WebsiteSource } from './source-website';
|
|
4
4
|
import { DirectorySource } from './source-directory';
|
|
@@ -7,4 +7,5 @@ export declare function isDirectorySource(source: DataSource): source is Directo
|
|
|
7
7
|
export declare function isWebsiteSource(source: DataSource): source is WebsiteSource;
|
|
8
8
|
export declare function isTableSource(source: DataSource): source is TableSource;
|
|
9
9
|
export { DataSourceBase, TableSource, WebsiteSource, DirectorySource, createSyncWorkflow };
|
|
10
|
+
export type { Item, SyncInput, SyncOutput };
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/data-sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/data-sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE7G,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,eAAe,CAAA;AAEtE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,eAAe,CAE/E;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,aAAa,CAE3E;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,WAAW,CAEvE;AAGD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAA;AAG1F,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -31,7 +31,7 @@ export declare namespace DataSource {
|
|
|
31
31
|
const createSyncWorkflow: <TState extends import("llmz/dist/types").ZuiType = import("llmz/dist/types").ZuiType>(props: {
|
|
32
32
|
type: string;
|
|
33
33
|
state: TState;
|
|
34
|
-
handler: (props: _WorkflowTypings.HandlerProps<`data_source_sync_${string}`, typeof
|
|
34
|
+
handler: (props: _WorkflowTypings.HandlerProps<`data_source_sync_${string}`, typeof _DataSources.SyncInput, typeof _DataSources.SyncOutput, TState>) => Promise<import("@bpinternal/zui").TypeOf<typeof _DataSources.SyncOutput>>;
|
|
35
35
|
}) => _BaseWorkflow<`data_source_sync_${string}`, import("@bpinternal/zui").ZodObject<{
|
|
36
36
|
dsId: import("@bpinternal/zui").ZodString;
|
|
37
37
|
kbName: import("@bpinternal/zui").ZodString;
|
|
@@ -148,8 +148,12 @@ export declare namespace DataSource {
|
|
|
148
148
|
const isWebsite: typeof _DataSources.isWebsiteSource;
|
|
149
149
|
const isTable: typeof _DataSources.isTableSource;
|
|
150
150
|
type Any = _DataSources.DataSource;
|
|
151
|
+
const Base: typeof _DataSources.DataSourceBase;
|
|
151
152
|
type DirectorySource = _DataSources.DirectorySource;
|
|
152
153
|
type WebsiteSource = _DataSources.WebsiteSource;
|
|
153
154
|
type TableSource = _DataSources.TableSource;
|
|
155
|
+
type Item = _DataSources.Item;
|
|
156
|
+
type SyncInput = _DataSources.SyncInput;
|
|
157
|
+
type SyncOutput = _DataSources.SyncOutput;
|
|
154
158
|
}
|
|
155
159
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAE3B,OAAO,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAyC,OAAO,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAI1G,OAAO,EAAmC,OAAO,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAE9F,OAAO,EAAE,YAAY,IAAI,aAAa,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE1F,OAAO,EAAE,UAAU,IAAI,WAAW,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,aAAa,CAAA;AAElF,OAAO,EAA2B,OAAO,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAE9E,OAAO,EAA2B,OAAO,IAAI,eAAe,EAAE,MAAM,cAAc,CAAA;AAClF,OAAO,EAAE,OAAO,EAAE,MA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"<define:__PACKAGE_VERSIONS__>"() {
|
|
51
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.13.
|
|
51
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.13.18", adk: "1.13.18", sdk: "5.0.2", llmz: "0.0.37", zai: "2.5.6", cognitive: "0.3.3" };
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -33614,6 +33614,71 @@ var init_client = __esm({
|
|
|
33614
33614
|
}
|
|
33615
33615
|
});
|
|
33616
33616
|
|
|
33617
|
+
// src/constants.ts
|
|
33618
|
+
var WellKnownTags, WellKnownMetadata;
|
|
33619
|
+
var init_constants = __esm({
|
|
33620
|
+
"src/constants.ts"() {
|
|
33621
|
+
"use strict";
|
|
33622
|
+
init_define_BUILD();
|
|
33623
|
+
init_define_PACKAGE_VERSIONS();
|
|
33624
|
+
WellKnownTags = {
|
|
33625
|
+
knowledge: {
|
|
33626
|
+
/**
|
|
33627
|
+
* All knowledge base have this tag (with value "knowledge-base") to identify them as knowledge-related records.
|
|
33628
|
+
* @example "source": "knowledge-base"
|
|
33629
|
+
*/
|
|
33630
|
+
KNOWLEDGE: "source",
|
|
33631
|
+
/**
|
|
33632
|
+
* The ID of the knowledge base the record belongs to.
|
|
33633
|
+
* This is the ID of the Knowledge Base primitive from Botpress.
|
|
33634
|
+
* @example "kbId": "kb_01K6RT9T39KF7K0A7R7D71TDZ1"
|
|
33635
|
+
*/
|
|
33636
|
+
KNOWLEDGE_BASE_ID: "kbId",
|
|
33637
|
+
/**
|
|
33638
|
+
* The name of the knowledge base as defined in the Knowledge Base primitive by the user.
|
|
33639
|
+
* @example "kbName": "My Files"
|
|
33640
|
+
*/
|
|
33641
|
+
KNOWLEDGE_BASE_NAME: "kbName",
|
|
33642
|
+
/**
|
|
33643
|
+
* The ID of the Data Source the record was ingested from.
|
|
33644
|
+
* @example "dsId": "docs"
|
|
33645
|
+
*/
|
|
33646
|
+
KNOWLEDGE_SOURCE_ID: "dsId",
|
|
33647
|
+
/**
|
|
33648
|
+
* The type of the Data Source the record was ingested from.
|
|
33649
|
+
* Possible values are: "document", "rich-text", "web-page", etc.
|
|
33650
|
+
* @example "dsType": "document"
|
|
33651
|
+
*/
|
|
33652
|
+
KNOWLEDGE_SOURCE_TYPE: "dsType"
|
|
33653
|
+
}
|
|
33654
|
+
};
|
|
33655
|
+
WellKnownMetadata = {
|
|
33656
|
+
knowledge: {
|
|
33657
|
+
/**
|
|
33658
|
+
* The title of the document or page.
|
|
33659
|
+
* @example "title": "Getting Started Guide"
|
|
33660
|
+
*/
|
|
33661
|
+
TITLE: "title",
|
|
33662
|
+
/**
|
|
33663
|
+
* The URL of the document or page.
|
|
33664
|
+
* @example "url": "https://example.com/docs/getting-started"
|
|
33665
|
+
*/
|
|
33666
|
+
URL: "url",
|
|
33667
|
+
/**
|
|
33668
|
+
* The favicon URL of the website.
|
|
33669
|
+
* @example "favicon": "https://example.com/favicon.ico"
|
|
33670
|
+
*/
|
|
33671
|
+
FAVICON: "favicon",
|
|
33672
|
+
/**
|
|
33673
|
+
* A brief description of the document or page.
|
|
33674
|
+
* @example "description": "Learn how to get started with our platform"
|
|
33675
|
+
*/
|
|
33676
|
+
DESCRIPTION: "description"
|
|
33677
|
+
}
|
|
33678
|
+
};
|
|
33679
|
+
}
|
|
33680
|
+
});
|
|
33681
|
+
|
|
33617
33682
|
// src/primitives/asset.ts
|
|
33618
33683
|
var init_asset = __esm({
|
|
33619
33684
|
"src/primitives/asset.ts"() {
|
|
@@ -33905,71 +33970,6 @@ var init_abort_signal = __esm({
|
|
|
33905
33970
|
}
|
|
33906
33971
|
});
|
|
33907
33972
|
|
|
33908
|
-
// src/constants.ts
|
|
33909
|
-
var WellKnownTags, WellKnownMetadata;
|
|
33910
|
-
var init_constants = __esm({
|
|
33911
|
-
"src/constants.ts"() {
|
|
33912
|
-
"use strict";
|
|
33913
|
-
init_define_BUILD();
|
|
33914
|
-
init_define_PACKAGE_VERSIONS();
|
|
33915
|
-
WellKnownTags = {
|
|
33916
|
-
knowledge: {
|
|
33917
|
-
/**
|
|
33918
|
-
* All knowledge base have this tag (with value "knowledge-base") to identify them as knowledge-related records.
|
|
33919
|
-
* @example "source": "knowledge-base"
|
|
33920
|
-
*/
|
|
33921
|
-
KNOWLEDGE: "source",
|
|
33922
|
-
/**
|
|
33923
|
-
* The ID of the knowledge base the record belongs to.
|
|
33924
|
-
* This is the ID of the Knowledge Base primitive from Botpress.
|
|
33925
|
-
* @example "kbId": "kb_01K6RT9T39KF7K0A7R7D71TDZ1"
|
|
33926
|
-
*/
|
|
33927
|
-
KNOWLEDGE_BASE_ID: "kbId",
|
|
33928
|
-
/**
|
|
33929
|
-
* The name of the knowledge base as defined in the Knowledge Base primitive by the user.
|
|
33930
|
-
* @example "kbName": "My Files"
|
|
33931
|
-
*/
|
|
33932
|
-
KNOWLEDGE_BASE_NAME: "kbName",
|
|
33933
|
-
/**
|
|
33934
|
-
* The ID of the Data Source the record was ingested from.
|
|
33935
|
-
* @example "dsId": "docs"
|
|
33936
|
-
*/
|
|
33937
|
-
KNOWLEDGE_SOURCE_ID: "dsId",
|
|
33938
|
-
/**
|
|
33939
|
-
* The type of the Data Source the record was ingested from.
|
|
33940
|
-
* Possible values are: "document", "rich-text", "web-page", etc.
|
|
33941
|
-
* @example "dsType": "document"
|
|
33942
|
-
*/
|
|
33943
|
-
KNOWLEDGE_SOURCE_TYPE: "dsType"
|
|
33944
|
-
}
|
|
33945
|
-
};
|
|
33946
|
-
WellKnownMetadata = {
|
|
33947
|
-
knowledge: {
|
|
33948
|
-
/**
|
|
33949
|
-
* The title of the document or page.
|
|
33950
|
-
* @example "title": "Getting Started Guide"
|
|
33951
|
-
*/
|
|
33952
|
-
TITLE: "title",
|
|
33953
|
-
/**
|
|
33954
|
-
* The URL of the document or page.
|
|
33955
|
-
* @example "url": "https://example.com/docs/getting-started"
|
|
33956
|
-
*/
|
|
33957
|
-
URL: "url",
|
|
33958
|
-
/**
|
|
33959
|
-
* The favicon URL of the website.
|
|
33960
|
-
* @example "favicon": "https://example.com/favicon.ico"
|
|
33961
|
-
*/
|
|
33962
|
-
FAVICON: "favicon",
|
|
33963
|
-
/**
|
|
33964
|
-
* A brief description of the document or page.
|
|
33965
|
-
* @example "description": "Learn how to get started with our platform"
|
|
33966
|
-
*/
|
|
33967
|
-
DESCRIPTION: "description"
|
|
33968
|
-
}
|
|
33969
|
-
};
|
|
33970
|
-
}
|
|
33971
|
-
});
|
|
33972
|
-
|
|
33973
33973
|
// src/runtime/autonomous.ts
|
|
33974
33974
|
import { getValue } from "llmz";
|
|
33975
33975
|
import {
|
|
@@ -46481,6 +46481,7 @@ var init_primitives = __esm({
|
|
|
46481
46481
|
DataSource3.isDirectory = isDirectorySource;
|
|
46482
46482
|
DataSource3.isWebsite = isWebsiteSource;
|
|
46483
46483
|
DataSource3.isTable = isTableSource;
|
|
46484
|
+
DataSource3.Base = DataSource;
|
|
46484
46485
|
})(DataSource2 || (DataSource2 = {}));
|
|
46485
46486
|
}
|
|
46486
46487
|
});
|
|
@@ -46982,6 +46983,7 @@ var init_library = __esm({
|
|
|
46982
46983
|
init_define_PACKAGE_VERSIONS();
|
|
46983
46984
|
init_runtime();
|
|
46984
46985
|
init_client();
|
|
46986
|
+
init_constants();
|
|
46985
46987
|
init_primitives();
|
|
46986
46988
|
init_chat2();
|
|
46987
46989
|
init_workflow_utils();
|