@olane/os 0.7.12-alpha.26 → 0.7.12-alpha.28

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":"default.config.d.ts","sourceRoot":"","sources":["../../../../src/o-olane-os/config/default.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,KAAG,aAmCtD,CAAC"}
1
+ {"version":3,"file":"default.config.d.ts","sourceRoot":"","sources":["../../../../src/o-olane-os/config/default.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D,eAAO,MAAM,uBAAuB,SAAU,MAAM,KAAG,aAmCtD,CAAC"}
@@ -20,7 +20,7 @@ export declare class OlaneOS extends oObject {
20
20
  getOSInstanceName(): Promise<string | undefined>;
21
21
  startNodes(type: NodeType): Promise<void>;
22
22
  runSavedPlans(): Promise<void>;
23
- use(oAddress: oAddress, params: any): Promise<any>;
23
+ use(oAddress: oAddress, params: any): Promise<import("@olane/o-core").oResponse>;
24
24
  start(): Promise<{
25
25
  peerId: string;
26
26
  transports: oTransport[];
@@ -3,7 +3,7 @@ import { expect } from 'chai';
3
3
  import dotenv from 'dotenv';
4
4
  import { defaultOSInstance } from '../utils/os.default.js';
5
5
  import { OlaneOSSystemStatus } from '../../src/o-olane-os/enum/o-os.status-enum.js';
6
- import { oNodeAddress } from '@olane/o-node';
6
+ import { multiaddr } from '@olane/o-config';
7
7
  dotenv.config();
8
8
  const network = defaultOSInstance;
9
9
  describe('basic-usage @initialize', async () => {
@@ -39,18 +39,28 @@ describe('basic-usage @initialize', async () => {
39
39
  // address: 'o://leader/intelligence',
40
40
  // },
41
41
  // });
42
+ console.log('Pinging relay');
43
+ await entryNode.p2pNode.services.ping.ping(multiaddr('/dns4/relay.olane.com/tcp/4000/tls/ws'));
44
+ console.log('Pinged relay');
42
45
  // use the intelligence tool
43
- await entryNode.useStream(new oNodeAddress('o://leader'), {
44
- method: 'intent',
45
- params: {
46
- _isStream: true,
47
- intent: 'What is the official endpoint for github mcp server?',
48
- },
49
- }, {
50
- onChunk: (chunk) => {
51
- console.log('Received chunk: ', JSON.stringify(chunk.result.data, null, 2));
52
- },
53
- });
46
+ // await entryNode.useStream(
47
+ // new oNodeAddress('o://leader'),
48
+ // {
49
+ // method: 'intent',
50
+ // params: {
51
+ // _isStream: true,
52
+ // intent: 'What is the official endpoint for github mcp server?',
53
+ // },
54
+ // },
55
+ // {
56
+ // onChunk: (chunk) => {
57
+ // console.log(
58
+ // 'Received chunk: ',
59
+ // JSON.stringify(chunk.result.data, null, 2),
60
+ // );
61
+ // },
62
+ // },
63
+ // );
54
64
  // await entryNode.use(
55
65
  // new oNodeAddress('o://intelligence'),
56
66
  // {
@@ -19,7 +19,7 @@ export const defaultOSInstance = new OlaneOS({
19
19
  },
20
20
  ],
21
21
  lanes: [],
22
- // noIndexNetwork: true,
22
+ noIndexNetwork: true,
23
23
  });
24
24
  setupGracefulShutdown(async () => {
25
25
  console.log('Stopping o-os instance...');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/os",
3
- "version": "0.7.12-alpha.26",
3
+ "version": "0.7.12-alpha.28",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -57,21 +57,21 @@
57
57
  "typescript": "5.4.5"
58
58
  },
59
59
  "dependencies": {
60
- "@olane/o-config": "0.7.12-alpha.26",
61
- "@olane/o-core": "0.7.12-alpha.26",
62
- "@olane/o-intelligence": "0.7.12-alpha.26",
63
- "@olane/o-lane": "0.7.12-alpha.26",
64
- "@olane/o-leader": "0.7.12-alpha.26",
65
- "@olane/o-protocol": "0.7.12-alpha.26",
66
- "@olane/o-storage": "0.7.12-alpha.26",
67
- "@olane/o-tool": "0.7.12-alpha.26",
68
- "@olane/o-tool-registry": "0.7.12-alpha.26",
69
- "@olane/o-tools-common": "0.7.12-alpha.26",
60
+ "@olane/o-config": "0.7.12-alpha.28",
61
+ "@olane/o-core": "0.7.12-alpha.28",
62
+ "@olane/o-intelligence": "0.7.12-alpha.28",
63
+ "@olane/o-lane": "0.7.12-alpha.28",
64
+ "@olane/o-leader": "0.7.12-alpha.28",
65
+ "@olane/o-protocol": "0.7.12-alpha.28",
66
+ "@olane/o-storage": "0.7.12-alpha.28",
67
+ "@olane/o-tool": "0.7.12-alpha.28",
68
+ "@olane/o-tool-registry": "0.7.12-alpha.28",
69
+ "@olane/o-tools-common": "0.7.12-alpha.28",
70
70
  "chalk": "^5.4.1",
71
71
  "debug": "^4.4.1",
72
72
  "dotenv": "^16.5.0",
73
73
  "fs-extra": "^11.3.0",
74
74
  "touch": "^3.1.1"
75
75
  },
76
- "gitHead": "d0436ce9eed9cad0e64561cf0428b0e791c57058"
76
+ "gitHead": "c860e7e62d84fa4725ef391db409476643679036"
77
77
  }