@olane/os 0.7.12-alpha.74 → 0.7.12-alpha.76
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":"o-os.d.ts","sourceRoot":"","sources":["../../../src/o-olane-os/o-os.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAU,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIzC,OAAO,
|
|
1
|
+
{"version":3,"file":"o-os.d.ts","sourceRoot":"","sources":["../../../src/o-olane-os/o-os.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAU,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIzC,OAAO,EAAiB,SAAS,EAAE,MAAM,eAAe,CAAC;AAKzD,KAAK,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC;AAC3C,qBAAa,OAAQ,SAAQ,OAAO;IAClC,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,KAAK,CAAqB;IAC3B,UAAU,EAAE,WAAW,GAAG,IAAI,CAAQ;IACtC,MAAM,EAAG,mBAAmB,CAAC;IACpC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,eAAe,CAAa;gBAExB,MAAM,EAAE,aAAa;IAKjC,SAAS,IAAI,SAAS,GAAG,WAAW;IAMpC,SAAS,CAAC,MAAM,EAAE,WAAW;IAOvB,OAAO,CAAC,IAAI,EAAE,WAAW;YAiBjB,UAAU;IAwClB,iBAAiB;IASjB,UAAU,CAAC,IAAI,EAAE,QAAQ;IAsDzB,aAAa;IA6Bb,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG;IASnC,KAAK,IAAI,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC;IAiC9D,IAAI;IAwBJ,OAAO;CAKd"}
|
|
@@ -7,7 +7,7 @@ import { NodeType } from '@olane/o-core';
|
|
|
7
7
|
import { initCommonTools } from '@olane/o-tools-common';
|
|
8
8
|
import { initRegistryTools } from '@olane/o-tool-registry';
|
|
9
9
|
import { ConfigManager } from '../utils/config.js';
|
|
10
|
-
import {
|
|
10
|
+
import { AGUIoLaneTool } from '@olane/o-lane';
|
|
11
11
|
import { oLaneStorage } from '@olane/o-storage';
|
|
12
12
|
import { oNodeAddress } from '@olane/o-node';
|
|
13
13
|
export class OlaneOS extends oObject {
|
|
@@ -113,22 +113,25 @@ export class OlaneOS extends oObject {
|
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
115
|
this.logger.debug('Starting non-leader node: ' + node.address.toString());
|
|
116
|
-
const commonNode = new
|
|
116
|
+
const commonNode = new AGUIoLaneTool({
|
|
117
117
|
...node,
|
|
118
118
|
address: node.address,
|
|
119
119
|
leader: this.rootLeader?.address || null,
|
|
120
120
|
parent: this.rootLeader?.address || null,
|
|
121
121
|
});
|
|
122
|
+
commonNode.hookInitializeFinished = () => {
|
|
123
|
+
this.rootLeader?.addChildNode(commonNode);
|
|
124
|
+
};
|
|
122
125
|
await commonNode.start();
|
|
123
|
-
this.rootLeader?.addChildNode(commonNode);
|
|
124
126
|
const olaneStorage = new oLaneStorage({
|
|
125
127
|
name: 'lane-storage',
|
|
126
128
|
parent: commonNode.address,
|
|
127
129
|
leader: this.rootLeader?.address || null,
|
|
128
130
|
});
|
|
131
|
+
olaneStorage.hookInitializeFinished = () => {
|
|
132
|
+
commonNode.addChildNode(olaneStorage);
|
|
133
|
+
};
|
|
129
134
|
await olaneStorage.start();
|
|
130
|
-
commonNode.addChildNode(olaneStorage);
|
|
131
|
-
await initCommonTools(commonNode);
|
|
132
135
|
await initRegistryTools(commonNode);
|
|
133
136
|
this.nodes.push(commonNode);
|
|
134
137
|
}
|
|
@@ -2,21 +2,21 @@ import 'dotenv/config';
|
|
|
2
2
|
import { NodeState } from '@olane/o-core';
|
|
3
3
|
import { expect } from 'chai';
|
|
4
4
|
import { defaultOSInstance } from '../utils/os.default.js';
|
|
5
|
-
import { oNodeAddress, oNodeTransport } from '@olane/o-node';
|
|
6
|
-
import { tmpNode } from '../utils/tmp.node.js';
|
|
7
5
|
const network = defaultOSInstance;
|
|
8
|
-
const entryNode = tmpNode;
|
|
6
|
+
// const entryNode = tmpNode;
|
|
9
7
|
let humanNode;
|
|
10
8
|
describe('playground running', async () => {
|
|
11
9
|
it('should be able to use stream from a provider service', async () => {
|
|
12
|
-
await
|
|
10
|
+
await network.start();
|
|
11
|
+
const entryNode = network.entryNode();
|
|
13
12
|
expect(entryNode).to.exist;
|
|
14
13
|
expect(entryNode.state).to.equal(NodeState.RUNNING);
|
|
15
|
-
const leader = new oNodeAddress('o://leader', [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
// const leader = new oNodeAddress('o://leader', [
|
|
15
|
+
// new oNodeTransport(
|
|
16
|
+
// // '/dns4/leader.olane.com/tcp/4000/tls/ws',
|
|
17
|
+
// // '/ip4/127.0.0.1/tcp/4000/ws/p2p/12D3KooWPHdsHhEdyBd9DS2zHJ1vRSyqSkZ97iT7F8ByYJ7U7bw8',
|
|
18
|
+
// ),
|
|
19
|
+
// ]);
|
|
20
20
|
// const joinedNode = new oLimitedTool({
|
|
21
21
|
// address: new oNodeAddress('o://joined'),
|
|
22
22
|
// leader: leader,
|
|
@@ -39,11 +39,13 @@ describe('playground running', async () => {
|
|
|
39
39
|
// },
|
|
40
40
|
// });
|
|
41
41
|
// await humanNode.start();
|
|
42
|
-
|
|
42
|
+
console.log('Using entry node:', entryNode.address.toString());
|
|
43
|
+
const response = await entryNode.useStream(entryNode.address, {
|
|
43
44
|
method: 'intent',
|
|
44
45
|
params: {
|
|
45
46
|
_isStreaming: true,
|
|
46
|
-
intent: '
|
|
47
|
+
intent: 'what is the weather in tokyo?',
|
|
48
|
+
// 'Use o://intelligence to generate the expo react native code for a new table view with example data populated',
|
|
47
49
|
_token: 'test',
|
|
48
50
|
},
|
|
49
51
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/os",
|
|
3
|
-
"version": "0.7.12-alpha.
|
|
3
|
+
"version": "0.7.12-alpha.76",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -58,23 +58,23 @@
|
|
|
58
58
|
"typescript": "5.4.5"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@olane/o-client-limited": "0.7.12-alpha.
|
|
62
|
-
"@olane/o-config": "0.7.12-alpha.
|
|
63
|
-
"@olane/o-core": "0.7.12-alpha.
|
|
64
|
-
"@olane/o-intelligence": "0.7.12-alpha.
|
|
65
|
-
"@olane/o-lane": "0.7.12-alpha.
|
|
66
|
-
"@olane/o-leader": "0.7.12-alpha.
|
|
67
|
-
"@olane/o-login": "0.7.12-alpha.
|
|
68
|
-
"@olane/o-protocol": "0.7.12-alpha.
|
|
69
|
-
"@olane/o-storage": "0.7.12-alpha.
|
|
70
|
-
"@olane/o-tool": "0.7.12-alpha.
|
|
71
|
-
"@olane/o-tool-registry": "0.7.12-alpha.
|
|
72
|
-
"@olane/o-tools-common": "0.7.12-alpha.
|
|
61
|
+
"@olane/o-client-limited": "0.7.12-alpha.76",
|
|
62
|
+
"@olane/o-config": "0.7.12-alpha.76",
|
|
63
|
+
"@olane/o-core": "0.7.12-alpha.76",
|
|
64
|
+
"@olane/o-intelligence": "0.7.12-alpha.76",
|
|
65
|
+
"@olane/o-lane": "0.7.12-alpha.76",
|
|
66
|
+
"@olane/o-leader": "0.7.12-alpha.76",
|
|
67
|
+
"@olane/o-login": "0.7.12-alpha.76",
|
|
68
|
+
"@olane/o-protocol": "0.7.12-alpha.76",
|
|
69
|
+
"@olane/o-storage": "0.7.12-alpha.76",
|
|
70
|
+
"@olane/o-tool": "0.7.12-alpha.76",
|
|
71
|
+
"@olane/o-tool-registry": "0.7.12-alpha.76",
|
|
72
|
+
"@olane/o-tools-common": "0.7.12-alpha.76",
|
|
73
73
|
"chalk": "^5.4.1",
|
|
74
74
|
"debug": "^4.4.1",
|
|
75
75
|
"dotenv": "^16.5.0",
|
|
76
76
|
"fs-extra": "^11.3.0",
|
|
77
77
|
"touch": "^3.1.1"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "2824fcbb8216f9a579d37f5528f273d22419865d"
|
|
80
80
|
}
|