@olane/o-tools-common 0.1.0
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/README.md +1 -0
- package/dist/agent/agents.tool.d.ts +76 -0
- package/dist/agent/agents.tool.d.ts.map +1 -0
- package/dist/agent/agents.tool.js +21 -0
- package/dist/agent/agents.tool.js.map +1 -0
- package/dist/agent/ai-agent.tool.d.ts +6 -0
- package/dist/agent/ai-agent.tool.d.ts.map +1 -0
- package/dist/agent/ai-agent.tool.js +11 -0
- package/dist/agent/ai-agent.tool.js.map +1 -0
- package/dist/agent/base-agent.tool.d.ts +75 -0
- package/dist/agent/base-agent.tool.d.ts.map +1 -0
- package/dist/agent/base-agent.tool.js +33 -0
- package/dist/agent/base-agent.tool.js.map +1 -0
- package/dist/agent/human-agent.tool.d.ts +6 -0
- package/dist/agent/human-agent.tool.d.ts.map +1 -0
- package/dist/agent/human-agent.tool.js +11 -0
- package/dist/agent/human-agent.tool.js.map +1 -0
- package/dist/agent/index.d.ts +5 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +5 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/agent/interfaces/agent.config.d.ts +6 -0
- package/dist/agent/interfaces/agent.config.d.ts.map +1 -0
- package/dist/agent/interfaces/agent.config.js +2 -0
- package/dist/agent/interfaces/agent.config.js.map +1 -0
- package/dist/agent/methods/agent.methods.d.ts +5 -0
- package/dist/agent/methods/agent.methods.d.ts.map +1 -0
- package/dist/agent/methods/agent.methods.js +31 -0
- package/dist/agent/methods/agent.methods.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/init.d.ts +9 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/init.js +45 -0
- package/dist/init.js.map +1 -0
- package/dist/plan/disk-plan-storage.tool.d.ts +105 -0
- package/dist/plan/disk-plan-storage.tool.d.ts.map +1 -0
- package/dist/plan/disk-plan-storage.tool.js +11 -0
- package/dist/plan/disk-plan-storage.tool.js.map +1 -0
- package/dist/plan/index.d.ts +3 -0
- package/dist/plan/index.d.ts.map +1 -0
- package/dist/plan/index.js +3 -0
- package/dist/plan/index.js.map +1 -0
- package/dist/plan/memory-plan-storage.tool.d.ts +105 -0
- package/dist/plan/memory-plan-storage.tool.d.ts.map +1 -0
- package/dist/plan/memory-plan-storage.tool.js +11 -0
- package/dist/plan/memory-plan-storage.tool.js.map +1 -0
- package/dist/plan/methods/plan.methods.d.ts +5 -0
- package/dist/plan/methods/plan.methods.d.ts.map +1 -0
- package/dist/plan/methods/plan.methods.js +9 -0
- package/dist/plan/methods/plan.methods.js.map +1 -0
- package/dist/plan/plan-storage.tool.d.ts +99 -0
- package/dist/plan/plan-storage.tool.d.ts.map +1 -0
- package/dist/plan/plan-storage.tool.js +15 -0
- package/dist/plan/plan-storage.tool.js.map +1 -0
- package/dist/plan/resolvers/index.d.ts +2 -0
- package/dist/plan/resolvers/index.d.ts.map +1 -0
- package/dist/plan/resolvers/index.js +2 -0
- package/dist/plan/resolvers/index.js.map +1 -0
- package/dist/plan/resolvers/plan.resolver.d.ts +6 -0
- package/dist/plan/resolvers/plan.resolver.d.ts.map +1 -0
- package/dist/plan/resolvers/plan.resolver.js +11 -0
- package/dist/plan/resolvers/plan.resolver.js.map +1 -0
- package/dist/registry/index.d.ts +3 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +3 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry/interfaces/search.interface.d.ts +6 -0
- package/dist/registry/interfaces/search.interface.d.ts.map +1 -0
- package/dist/registry/interfaces/search.interface.js +2 -0
- package/dist/registry/interfaces/search.interface.js.map +1 -0
- package/dist/registry/methods/registry.methods.d.ts +5 -0
- package/dist/registry/methods/registry.methods.d.ts.map +1 -0
- package/dist/registry/methods/registry.methods.js +75 -0
- package/dist/registry/methods/registry.methods.js.map +1 -0
- package/dist/registry/registry-memory.tool.d.ts +8 -0
- package/dist/registry/registry-memory.tool.d.ts.map +1 -0
- package/dist/registry/registry-memory.tool.js +43 -0
- package/dist/registry/registry-memory.tool.js.map +1 -0
- package/dist/registry/registry.tool.d.ts +76 -0
- package/dist/registry/registry.tool.d.ts.map +1 -0
- package/dist/registry/registry.tool.js +16 -0
- package/dist/registry/registry.tool.js.map +1 -0
- package/dist/search/index.d.ts +1 -0
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/index.js +1 -0
- package/dist/search/index.js.map +1 -0
- package/dist/search/parameters/search.parameters.d.ts +5 -0
- package/dist/search/parameters/search.parameters.d.ts.map +1 -0
- package/dist/search/parameters/search.parameters.js +17 -0
- package/dist/search/parameters/search.parameters.js.map +1 -0
- package/dist/search/search.tool.d.ts +72 -0
- package/dist/search/search.tool.d.ts.map +1 -0
- package/dist/search/search.tool.js +26 -0
- package/dist/search/search.tool.js.map +1 -0
- package/dist/setup/index.d.ts +3 -0
- package/dist/setup/index.d.ts.map +1 -0
- package/dist/setup/index.js +3 -0
- package/dist/setup/index.js.map +1 -0
- package/dist/setup/methods/setup.method.d.ts +5 -0
- package/dist/setup/methods/setup.method.d.ts.map +1 -0
- package/dist/setup/methods/setup.method.js +17 -0
- package/dist/setup/methods/setup.method.js.map +1 -0
- package/dist/setup/setup.tool.d.ts +75 -0
- package/dist/setup/setup.tool.d.ts.map +1 -0
- package/dist/setup/setup.tool.js +49 -0
- package/dist/setup/setup.tool.js.map +1 -0
- package/dist/storage/delete.tool.d.ts +70 -0
- package/dist/storage/delete.tool.d.ts.map +1 -0
- package/dist/storage/delete.tool.js +11 -0
- package/dist/storage/delete.tool.js.map +1 -0
- package/dist/storage/get.tool.d.ts +70 -0
- package/dist/storage/get.tool.d.ts.map +1 -0
- package/dist/storage/get.tool.js +11 -0
- package/dist/storage/get.tool.js.map +1 -0
- package/dist/storage/has.tool.d.ts +70 -0
- package/dist/storage/has.tool.d.ts.map +1 -0
- package/dist/storage/has.tool.js +11 -0
- package/dist/storage/has.tool.js.map +1 -0
- package/dist/storage/index.d.ts +10 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +10 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/interfaces/get-data.response.d.ts +4 -0
- package/dist/storage/interfaces/get-data.response.d.ts.map +1 -0
- package/dist/storage/interfaces/get-data.response.js +2 -0
- package/dist/storage/interfaces/get-data.response.js.map +1 -0
- package/dist/storage/interfaces/index.d.ts +2 -0
- package/dist/storage/interfaces/index.d.ts.map +1 -0
- package/dist/storage/interfaces/index.js +2 -0
- package/dist/storage/interfaces/index.js.map +1 -0
- package/dist/storage/methods/storage.methods.d.ts +5 -0
- package/dist/storage/methods/storage.methods.d.ts.map +1 -0
- package/dist/storage/methods/storage.methods.js +66 -0
- package/dist/storage/methods/storage.methods.js.map +1 -0
- package/dist/storage/providers/dht-storage-provider.tool.d.ts +12 -0
- package/dist/storage/providers/dht-storage-provider.tool.d.ts.map +1 -0
- package/dist/storage/providers/dht-storage-provider.tool.js +25 -0
- package/dist/storage/providers/dht-storage-provider.tool.js.map +1 -0
- package/dist/storage/providers/disk-storage-provider.tool.d.ts +20 -0
- package/dist/storage/providers/disk-storage-provider.tool.d.ts.map +1 -0
- package/dist/storage/providers/disk-storage-provider.tool.js +106 -0
- package/dist/storage/providers/disk-storage-provider.tool.js.map +1 -0
- package/dist/storage/providers/encrypted-storage-provider.tool.d.ts +1 -0
- package/dist/storage/providers/encrypted-storage-provider.tool.d.ts.map +1 -0
- package/dist/storage/providers/encrypted-storage-provider.tool.js +1 -0
- package/dist/storage/providers/encrypted-storage-provider.tool.js.map +1 -0
- package/dist/storage/providers/memory-storage-provider.tool.d.ts +13 -0
- package/dist/storage/providers/memory-storage-provider.tool.d.ts.map +1 -0
- package/dist/storage/providers/memory-storage-provider.tool.js +47 -0
- package/dist/storage/providers/memory-storage-provider.tool.js.map +1 -0
- package/dist/storage/providers/storage-provider.tool.d.ts +75 -0
- package/dist/storage/providers/storage-provider.tool.d.ts.map +1 -0
- package/dist/storage/providers/storage-provider.tool.js +23 -0
- package/dist/storage/providers/storage-provider.tool.js.map +1 -0
- package/dist/storage/put.tool.d.ts +70 -0
- package/dist/storage/put.tool.d.ts.map +1 -0
- package/dist/storage/put.tool.js +11 -0
- package/dist/storage/put.tool.js.map +1 -0
- package/dist/storage/storage.tool.d.ts +12 -0
- package/dist/storage/storage.tool.d.ts.map +1 -0
- package/dist/storage/storage.tool.js +36 -0
- package/dist/storage/storage.tool.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/vault/index.d.ts +2 -0
- package/dist/vault/index.d.ts.map +1 -0
- package/dist/vault/index.js +2 -0
- package/dist/vault/index.js.map +1 -0
- package/dist/vault/lib/encryption.d.ts +17 -0
- package/dist/vault/lib/encryption.d.ts.map +1 -0
- package/dist/vault/lib/encryption.js +70 -0
- package/dist/vault/lib/encryption.js.map +1 -0
- package/dist/vault/methods/vault.methods.d.ts +5 -0
- package/dist/vault/methods/vault.methods.d.ts.map +1 -0
- package/dist/vault/methods/vault.methods.js +38 -0
- package/dist/vault/methods/vault.methods.js.map +1 -0
- package/dist/vault/vault.tool.d.ts +74 -0
- package/dist/vault/vault.tool.d.ts.map +1 -0
- package/dist/vault/vault.tool.js +38 -0
- package/dist/vault/vault.tool.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const VAULT_PARAMS = {
|
|
2
|
+
get: {
|
|
3
|
+
name: 'get',
|
|
4
|
+
description: 'Retrieve data from the vault',
|
|
5
|
+
dependencies: [],
|
|
6
|
+
parameters: [
|
|
7
|
+
{
|
|
8
|
+
name: 'key',
|
|
9
|
+
type: 'string',
|
|
10
|
+
value: 'string',
|
|
11
|
+
description: 'The key to retrieve',
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
store: {
|
|
17
|
+
name: 'store',
|
|
18
|
+
description: 'Store data in the vault',
|
|
19
|
+
dependencies: [],
|
|
20
|
+
parameters: [
|
|
21
|
+
{
|
|
22
|
+
name: 'key',
|
|
23
|
+
type: 'string',
|
|
24
|
+
value: 'string',
|
|
25
|
+
description: 'The key to store',
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'value',
|
|
30
|
+
type: 'string',
|
|
31
|
+
value: 'string',
|
|
32
|
+
description: 'The value to store',
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=vault.methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault.methods.js","sourceRoot":"","sources":["../../../src/vault/methods/vault.methods.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAA+B;IACtD,GAAG,EAAE;QACH,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,8BAA8B;QAC3C,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qBAAqB;gBAClC,QAAQ,EAAE,IAAI;aACf;SACF;KACF;IACD,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,yBAAyB;QACtC,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,QAAQ,EAAE,IAAI;aACf;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,oBAAoB;gBACjC,QAAQ,EAAE,IAAI;aACf;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { oToolConfig, ToolResult } from '@olane/o-tool';
|
|
2
|
+
import { oAddress, oRequest, oVirtualNode } from '@olane/o-core';
|
|
3
|
+
declare const VaultTool_base: (new (...args: any[]) => {
|
|
4
|
+
validateToolCall(oRequest: oRequest): boolean;
|
|
5
|
+
handleProtocol(address: oAddress): Promise<void>;
|
|
6
|
+
initialize(): Promise<void>;
|
|
7
|
+
use(address: oAddress, data: {
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}, config?: import("@olane/o-core").UseOptions): Promise<import("@olane/o-core").oResponse>;
|
|
10
|
+
handleStream(streamData: import("@olane/o-config/dist").IncomingStreamData): Promise<void>;
|
|
11
|
+
execute(req: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
|
|
12
|
+
run(request: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<import("@olane/o-tool").RunResult>;
|
|
13
|
+
myTools(): string[];
|
|
14
|
+
myToolParams(tool: string): Record<string, any>;
|
|
15
|
+
callMyTool(request: oRequest, stream?: import("@olane/o-config/dist").Stream): Promise<ToolResult>;
|
|
16
|
+
index(): Promise<{
|
|
17
|
+
provider: string;
|
|
18
|
+
summary: string;
|
|
19
|
+
} | {
|
|
20
|
+
summary: string | null;
|
|
21
|
+
provider?: undefined;
|
|
22
|
+
}>;
|
|
23
|
+
_tool_index_network(request: oRequest): Promise<ToolResult>;
|
|
24
|
+
whoami(): Promise<{
|
|
25
|
+
tools: string[];
|
|
26
|
+
description: string;
|
|
27
|
+
}>;
|
|
28
|
+
findMissingParams(methodName: string, params: any): import("@olane/o-protocol/dist").oParameter[];
|
|
29
|
+
readonly config: import("@olane/o-core").CoreConfig;
|
|
30
|
+
p2pNode: import("@olane/o-config/dist").Libp2p;
|
|
31
|
+
logger: import("@olane/o-core").Logger;
|
|
32
|
+
networkConfig: import("@olane/o-config/dist").Libp2pConfig;
|
|
33
|
+
address: oAddress;
|
|
34
|
+
readonly staticAddress: oAddress;
|
|
35
|
+
peerId: import("@olane/o-config/dist").PeerId;
|
|
36
|
+
state: import("@olane/o-core").NodeState;
|
|
37
|
+
errors: Error[];
|
|
38
|
+
connectionManager: import("@olane/o-core").oConnectionManager;
|
|
39
|
+
leaders: import("@olane/o-config/dist").Multiaddr[];
|
|
40
|
+
addressResolution: import("@olane/o-core").oAddressResolution;
|
|
41
|
+
readonly description: string;
|
|
42
|
+
dependencies: import("@olane/o-core").oDependency[];
|
|
43
|
+
methods: {
|
|
44
|
+
[key: string]: import("@olane/o-protocol/dist").oMethod;
|
|
45
|
+
};
|
|
46
|
+
successCount: number;
|
|
47
|
+
errorCount: number;
|
|
48
|
+
get type(): import("@olane/o-core").NodeType;
|
|
49
|
+
get transports(): string[];
|
|
50
|
+
get parent(): oAddress | null;
|
|
51
|
+
get parentTransports(): import("@olane/o-config/dist").Multiaddr[];
|
|
52
|
+
getTransports(address: oAddress): import("@olane/o-config/dist").Multiaddr[];
|
|
53
|
+
handleStaticAddressTranslation(addressInput: oAddress): Promise<oAddress>;
|
|
54
|
+
translateAddress(addressWithLeaderTransports: oAddress): Promise<{
|
|
55
|
+
nextHopAddress: oAddress;
|
|
56
|
+
targetAddress: oAddress;
|
|
57
|
+
}>;
|
|
58
|
+
advertiseToNetwork(): Promise<void>;
|
|
59
|
+
connectToParent(): Promise<void>;
|
|
60
|
+
register(): Promise<void>;
|
|
61
|
+
connect(nextHopAddress: oAddress, targetAddress: oAddress): Promise<import("@olane/o-core").oConnection>;
|
|
62
|
+
teardown(): Promise<void>;
|
|
63
|
+
start(): Promise<void>;
|
|
64
|
+
stop(): Promise<void>;
|
|
65
|
+
}) & typeof oVirtualNode;
|
|
66
|
+
export declare class VaultTool extends VaultTool_base {
|
|
67
|
+
private encryptionService;
|
|
68
|
+
private store;
|
|
69
|
+
constructor(config: oToolConfig);
|
|
70
|
+
_tool_store(request: oRequest): Promise<ToolResult>;
|
|
71
|
+
_tool_get(request: oRequest): Promise<ToolResult>;
|
|
72
|
+
}
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=vault.tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault.tool.d.ts","sourceRoot":"","sources":["../../src/vault/vault.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;;;;;;aAkBvC,CAAC;;iCAGS,CAAC;iCAC4B,CAAC;;;wCAKT,CAAC;;;;;;gBAQlD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/BT,qBAAa,SAAU,SAAQ,cAAmB;IAChD,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,KAAK,CAAkC;gBAEnC,MAAM,EAAE,WAAW;IAUzB,WAAW,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAanD,SAAS,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAYxD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { oTool } from '@olane/o-tool';
|
|
2
|
+
import { oAddress, oVirtualNode } from '@olane/o-core';
|
|
3
|
+
import { EncryptionService } from './lib/encryption';
|
|
4
|
+
import { VAULT_PARAMS } from './methods/vault.methods';
|
|
5
|
+
export class VaultTool extends oTool(oVirtualNode) {
|
|
6
|
+
encryptionService;
|
|
7
|
+
store = new Map();
|
|
8
|
+
constructor(config) {
|
|
9
|
+
super({
|
|
10
|
+
...config,
|
|
11
|
+
address: new oAddress('o://vault'),
|
|
12
|
+
methods: VAULT_PARAMS,
|
|
13
|
+
description: 'Tool to store and retrieve sensitive data from the network',
|
|
14
|
+
});
|
|
15
|
+
this.encryptionService = new EncryptionService();
|
|
16
|
+
}
|
|
17
|
+
async _tool_store(request) {
|
|
18
|
+
const params = request.params;
|
|
19
|
+
const { key, value } = params;
|
|
20
|
+
const b64key = btoa(key);
|
|
21
|
+
const encryptedValue = await this.encryptionService.encryptToBase64(value);
|
|
22
|
+
this.store.set(b64key, encryptedValue);
|
|
23
|
+
return {
|
|
24
|
+
message: 'Successfully stored value for key: ' + b64key,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
async _tool_get(request) {
|
|
28
|
+
const params = request.params;
|
|
29
|
+
const { key } = params;
|
|
30
|
+
const b64key = btoa(key);
|
|
31
|
+
const encryptedValue = this.store.get(b64key);
|
|
32
|
+
const decryptedValue = await this.encryptionService.decryptFromBase64(encryptedValue);
|
|
33
|
+
return {
|
|
34
|
+
value: decryptedValue,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=vault.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault.tool.js","sourceRoot":"","sources":["../../src/vault/vault.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAA2B,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAY,YAAY,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,OAAO,SAAU,SAAQ,KAAK,CAAC,YAAY,CAAC;IACxC,iBAAiB,CAAoB;IACrC,KAAK,GAAwB,IAAI,GAAG,EAAE,CAAC;IAE/C,YAAY,MAAmB;QAC7B,KAAK,CAAC;YACJ,GAAG,MAAM;YACT,OAAO,EAAE,IAAI,QAAQ,CAAC,WAAW,CAAC;YAClC,OAAO,EAAE,YAAY;YACrB,WAAW,EAAE,4DAA4D;SAC1E,CAAC,CAAC;QACH,IAAI,CAAC,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAiB;QACjC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC9B,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QAC9B,MAAM,MAAM,GAAG,IAAI,CAAC,GAAa,CAAC,CAAC;QACnC,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,eAAe,CACjE,KAAe,CAChB,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAgB,EAAE,cAAc,CAAC,CAAC;QACjD,OAAO;YACL,OAAO,EAAE,qCAAqC,GAAG,MAAM;SACxD,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,OAAiB;QAC/B,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC9B,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;QACvB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAa,CAAC,CAAC;QACnC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC9C,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CACnE,cAAwB,CACzB,CAAC;QACF,OAAO;YACL,KAAK,EAAE,cAAc;SACtB,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@olane/o-tools-common",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"browser": "dist/index.js",
|
|
8
|
+
"node": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"require": "./dist/index.js",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"browser": "./dist/index.js",
|
|
15
|
+
"node": "./dist/index.js",
|
|
16
|
+
"default": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist/**/*",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"test": "jest",
|
|
27
|
+
"dev": "DEBUG=o-protocol:* npx tsx src/tests/index.ts",
|
|
28
|
+
"build": "tsc",
|
|
29
|
+
"start:prod": "node dist/index.js",
|
|
30
|
+
"prepublishOnly": "npm run build",
|
|
31
|
+
"update:lib": "npm install @olane/o-core@latest",
|
|
32
|
+
"lint": "eslint src/**/*.ts"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/olane-labs/o-tools-common.git"
|
|
37
|
+
},
|
|
38
|
+
"author": "oLane Inc.",
|
|
39
|
+
"license": "ISC",
|
|
40
|
+
"description": "oLane Core",
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@olane/o-core": "file:../..",
|
|
43
|
+
"@olane/o-config": "file:../o-config",
|
|
44
|
+
"@olane/o-protocol": "file:../o-protocol",
|
|
45
|
+
"@olane/o-tool": "file:../o-tool",
|
|
46
|
+
"@babel/core": "^7.27.4",
|
|
47
|
+
"@babel/preset-env": "^7.27.2",
|
|
48
|
+
"@babel/preset-react": "^7.27.1",
|
|
49
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
50
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
51
|
+
"@eslint/js": "^9.29.0",
|
|
52
|
+
"@types/jest": "^30.0.0",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
|
54
|
+
"@typescript-eslint/parser": "^8.34.1",
|
|
55
|
+
"babel-loader": "^10.0.0",
|
|
56
|
+
"eslint": "^9.29.0",
|
|
57
|
+
"eslint-config-prettier": "^10.1.5",
|
|
58
|
+
"eslint-plugin-prettier": "^5.5.0",
|
|
59
|
+
"globals": "^16.2.0",
|
|
60
|
+
"jest": "^30.0.0",
|
|
61
|
+
"nodemon": "^3.1.10",
|
|
62
|
+
"prettier": "^3.5.3",
|
|
63
|
+
"ts-jest": "^29.4.0",
|
|
64
|
+
"ts-loader": "^9.5.2",
|
|
65
|
+
"ts-node": "^10.9.2",
|
|
66
|
+
"tsconfig-paths": "^4.2.0",
|
|
67
|
+
"tsx": "^4.20.3",
|
|
68
|
+
"typescript": "^5.8.3",
|
|
69
|
+
"webpack": "^5.99.9",
|
|
70
|
+
"webpack-cli": "^6.0.1",
|
|
71
|
+
"webpack-dev-server": "^5.2.2"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@olane/o-core": "^0.1.0",
|
|
75
|
+
"@olane/o-config": "^0.1.0",
|
|
76
|
+
"@olane/o-protocol": "^0.1.0",
|
|
77
|
+
"@olane/o-tool": "^0.1.0"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"debug": "^4.4.1",
|
|
81
|
+
"dotenv": "^16.5.0"
|
|
82
|
+
}
|
|
83
|
+
}
|