@olane/o-storage 0.7.12-alpha.5 → 0.7.12-alpha.50

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.
@@ -1 +1 @@
1
- {"version":3,"file":"storage.tool.d.ts","sourceRoot":"","sources":["../../src/storage.tool.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,WAAY,SAAQ,SAAS;gBAC5B,MAAM,EAAE,eAAe;IAS7B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAoDlC"}
1
+ {"version":3,"file":"storage.tool.d.ts","sourceRoot":"","sources":["../../src/storage.tool.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,WAAY,SAAQ,SAAS;gBAC5B,MAAM,EAAE,eAAe;IAS7B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CA0ClC"}
@@ -15,49 +15,42 @@ export class StorageTool extends oLaneTool {
15
15
  }
16
16
  async initialize() {
17
17
  await super.initialize();
18
- let node = new DiskStorageProvider({
19
- name: 'disk',
20
- parent: this.address,
21
- leader: this.leader,
22
- address: new oAddress('o://disk'),
23
- });
24
- await node.start();
25
- this.addChildNode(node);
26
- node = new MemoryStorageProvider({
27
- name: 'memory',
28
- parent: this.address,
29
- leader: this.leader,
30
- address: new oAddress('o://memory'),
31
- });
32
- await node.start();
33
- this.addChildNode(node);
34
- node = new SecureStorageProvider({
35
- name: 'secure',
36
- parent: this.address,
37
- leader: this.leader,
38
- address: new oAddress('o://secure'),
39
- });
40
- await node.start();
41
- this.addChildNode(node);
42
- node = new PlaceholderTool({
43
- name: 'placeholder storage',
44
- parent: this.address,
45
- leader: this.leader,
46
- });
47
- await node.start();
48
- this.addChildNode(node);
49
- // Add OS Config Storage Tool for managing OS instance configurations
50
- // Note: This tool provides a unified interface that delegates to storage providers.
51
- // For Lambda/cloud deployments, use 'supabase' backend (configured in o-network-lambda).
52
- // For local deployments, use 'disk' or 'memory' backend.
53
- node = new OSConfigStorageTool({
54
- name: 'os-config',
55
- parent: this.address,
56
- leader: this.leader,
57
- storageBackend: process.env.OS_CONFIG_STORAGE ||
58
- 'disk',
59
- });
60
- await node.start();
61
- this.addChildNode(node);
18
+ const tools = [
19
+ new DiskStorageProvider({
20
+ name: 'disk',
21
+ parent: this.address,
22
+ leader: this.leader,
23
+ address: new oAddress('o://disk'),
24
+ }),
25
+ new MemoryStorageProvider({
26
+ name: 'memory',
27
+ parent: this.address,
28
+ leader: this.leader,
29
+ address: new oAddress('o://memory'),
30
+ }),
31
+ new SecureStorageProvider({
32
+ name: 'secure',
33
+ parent: this.address,
34
+ leader: this.leader,
35
+ address: new oAddress('o://secure'),
36
+ }),
37
+ new PlaceholderTool({
38
+ name: 'placeholder storage',
39
+ parent: this.address,
40
+ leader: this.leader,
41
+ }),
42
+ new OSConfigStorageTool({
43
+ name: 'os-config',
44
+ parent: this.address,
45
+ leader: this.leader,
46
+ storageBackend: process.env.OS_CONFIG_STORAGE || 'disk',
47
+ }),
48
+ ];
49
+ for (const tool of tools) {
50
+ tool.hookInitializeFinished = () => {
51
+ this.addChildNode(tool);
52
+ };
53
+ await tool.start();
54
+ }
62
55
  }
63
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-storage",
3
- "version": "0.7.12-alpha.5",
3
+ "version": "0.7.12-alpha.50",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -54,14 +54,14 @@
54
54
  "typescript": "5.4.5"
55
55
  },
56
56
  "dependencies": {
57
- "@olane/o-config": "0.7.12-alpha.5",
58
- "@olane/o-core": "0.7.12-alpha.4",
59
- "@olane/o-lane": "0.7.12-alpha.5",
60
- "@olane/o-node": "0.7.12-alpha.5",
61
- "@olane/o-protocol": "0.7.12-alpha.4",
62
- "@olane/o-tool": "0.7.12-alpha.5",
57
+ "@olane/o-config": "0.7.12-alpha.50",
58
+ "@olane/o-core": "0.7.12-alpha.50",
59
+ "@olane/o-lane": "0.7.12-alpha.50",
60
+ "@olane/o-node": "0.7.12-alpha.50",
61
+ "@olane/o-protocol": "0.7.12-alpha.50",
62
+ "@olane/o-tool": "0.7.12-alpha.50",
63
63
  "debug": "^4.4.1",
64
64
  "dotenv": "^16.5.0"
65
65
  },
66
- "gitHead": "f0b799131f025624da04374b76e9aa373402f787"
66
+ "gitHead": "b39adebc281eb6f08e49985b8d85c84ce331e76a"
67
67
  }