@olane/o-tools-common 0.7.6 → 0.7.8
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/init.d.ts +2 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +11 -0
- package/dist/search/index.d.ts +2 -0
- package/dist/search/index.d.ts.map +1 -1
- package/dist/search/index.js +2 -1
- package/dist/search/parameters/search.parameters.d.ts.map +1 -1
- package/dist/search/parameters/search.parameters.js +3 -3
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/init.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StorageTool } from '@olane/o-storage';
|
|
2
2
|
import { SearchTool } from './search/search.tool.js';
|
|
3
3
|
import { EncryptionTool } from './encryption/encryption.tool.js';
|
|
4
|
+
import { oApprovalTool } from '@olane/o-approval';
|
|
4
5
|
import { oLaneTool } from '@olane/o-lane';
|
|
5
|
-
export declare const initCommonTools: (oNode: oLaneTool) => Promise<(SearchTool | EncryptionTool | StorageTool)[]>;
|
|
6
|
+
export declare const initCommonTools: (oNode: oLaneTool) => Promise<(SearchTool | EncryptionTool | StorageTool | oApprovalTool)[]>;
|
|
6
7
|
//# sourceMappingURL=init.d.ts.map
|
package/dist/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,eAAO,MAAM,eAAe,UAAiB,SAAS,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,eAAO,MAAM,eAAe,UAAiB,SAAS,2EAoCrD,CAAC"}
|
package/dist/init.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StorageTool } from '@olane/o-storage';
|
|
2
2
|
import { SearchTool } from './search/search.tool.js';
|
|
3
3
|
import { EncryptionTool } from './encryption/encryption.tool.js';
|
|
4
|
+
import { oApprovalTool } from '@olane/o-approval';
|
|
4
5
|
export const initCommonTools = async (oNode) => {
|
|
5
6
|
const params = {
|
|
6
7
|
parent: oNode.address,
|
|
@@ -19,6 +20,16 @@ export const initCommonTools = async (oNode) => {
|
|
|
19
20
|
name: 'search',
|
|
20
21
|
...params,
|
|
21
22
|
}),
|
|
23
|
+
new oApprovalTool({
|
|
24
|
+
...params,
|
|
25
|
+
name: 'approval',
|
|
26
|
+
mode: 'allow', // Default mode
|
|
27
|
+
preferences: {
|
|
28
|
+
whitelist: [],
|
|
29
|
+
blacklist: [],
|
|
30
|
+
timeout: 180000, // 3 minutes
|
|
31
|
+
},
|
|
32
|
+
}),
|
|
22
33
|
];
|
|
23
34
|
await Promise.all(tools.map(async (tool) => {
|
|
24
35
|
await tool.start();
|
package/dist/search/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/search/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/search/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mCAAmC,CAAC"}
|
package/dist/search/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './search.tool.js';
|
|
2
|
+
export * from './parameters/search.parameters.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.parameters.d.ts","sourceRoot":"","sources":["../../../src/search/parameters/search.parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,aAAa,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"search.parameters.d.ts","sourceRoot":"","sources":["../../../src/search/parameters/search.parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,aAAa,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAgBnD,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export const SEARCH_PARAMS = {
|
|
2
2
|
search: {
|
|
3
|
-
name: '
|
|
4
|
-
description: 'Search for data',
|
|
3
|
+
name: 'vector',
|
|
4
|
+
description: 'Search for data using vector similarity within the Olane OS from a global view.',
|
|
5
5
|
dependencies: [],
|
|
6
6
|
parameters: [
|
|
7
7
|
{
|
|
8
8
|
name: 'query',
|
|
9
9
|
type: 'string',
|
|
10
10
|
value: 'string',
|
|
11
|
-
description: 'The query to search for',
|
|
11
|
+
description: 'The vector query to search for',
|
|
12
12
|
required: true,
|
|
13
13
|
},
|
|
14
14
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-tools-common",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,13 +54,14 @@
|
|
|
54
54
|
"typescript": "5.4.5"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@olane/o-
|
|
58
|
-
"@olane/o-
|
|
59
|
-
"@olane/o-
|
|
60
|
-
"@olane/o-
|
|
61
|
-
"@olane/o-
|
|
62
|
-
"@olane/o-
|
|
63
|
-
"@olane/o-
|
|
57
|
+
"@olane/o-approval": "^0.7.5",
|
|
58
|
+
"@olane/o-config": "^0.7.7",
|
|
59
|
+
"@olane/o-core": "^0.7.7",
|
|
60
|
+
"@olane/o-lane": "^0.7.7",
|
|
61
|
+
"@olane/o-leader": "^0.7.7",
|
|
62
|
+
"@olane/o-protocol": "^0.7.7",
|
|
63
|
+
"@olane/o-storage": "^0.7.7",
|
|
64
|
+
"@olane/o-tool": "^0.7.7"
|
|
64
65
|
},
|
|
65
66
|
"dependencies": {
|
|
66
67
|
"debug": "^4.4.1",
|