@olane/o-intelligence 0.7.29 → 0.7.33

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-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/o-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAa,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAe,eAAe,EAAE,MAAM,eAAe,CAAC;AAE7D,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,OAAO,CAAC,eAAe,CAAK;gBAChB,MAAM,EAAE,eAAe;IAuB7B,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAmBnD,gBAAgB,IAAI,OAAO,CAAC;QAAE,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IA6DvD,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAsEtE,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC;QACxD,MAAM,EAAE,QAAQ,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,GAAG,CAAC;KACd,CAAC;IAWI,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC;IA6C/D,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC;IAwCzD,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAuClC"}
1
+ {"version":3,"file":"o-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/o-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAa,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAe,eAAe,EAAE,MAAM,eAAe,CAAC;AAE7D,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,OAAO,CAAC,eAAe,CAAK;gBAChB,MAAM,EAAE,eAAe;IAuB7B,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAmBnD,gBAAgB,IAAI,OAAO,CAAC;QAAE,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IA6DvD,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAsEtE,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC;QACxD,MAAM,EAAE,QAAQ,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,GAAG,CAAC;KACd,CAAC;IAWI,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC;IA6C/D,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC;IA0CzD,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAuClC"}
@@ -225,21 +225,23 @@ export class IntelligenceTool extends oLaneTool {
225
225
  params: {
226
226
  _isStreaming: _isStreaming,
227
227
  apiKey: intelligence.apiKey,
228
- messages: !!userMessage ? [
229
- {
230
- role: 'assistant',
231
- content: prompt
232
- },
233
- {
234
- role: 'user',
235
- content: userMessage,
236
- },
237
- ] : [
238
- {
239
- role: 'user',
240
- content: prompt
241
- },
242
- ],
228
+ messages: !!userMessage
229
+ ? [
230
+ {
231
+ role: 'assistant',
232
+ content: prompt,
233
+ },
234
+ {
235
+ role: 'user',
236
+ content: userMessage,
237
+ },
238
+ ]
239
+ : [
240
+ {
241
+ role: 'user',
242
+ content: prompt,
243
+ },
244
+ ],
243
245
  },
244
246
  }, {
245
247
  isStream: _isStreaming || false,
@@ -280,9 +282,9 @@ export class IntelligenceTool extends oLaneTool {
280
282
  }),
281
283
  ];
282
284
  for (const tool of tools) {
283
- tool.hookInitializeFinished = () => {
285
+ tool.onInitFinished(() => {
284
286
  this.addChildNode(tool);
285
- };
287
+ });
286
288
  await tool.start();
287
289
  }
288
290
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-intelligence",
3
- "version": "0.7.29",
3
+ "version": "0.7.33",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -54,13 +54,13 @@
54
54
  "typescript": "5.4.5"
55
55
  },
56
56
  "dependencies": {
57
- "@olane/o-config": "0.7.29",
58
- "@olane/o-core": "0.7.29",
59
- "@olane/o-lane": "0.7.29",
60
- "@olane/o-protocol": "0.7.29",
61
- "@olane/o-tool": "0.7.29",
57
+ "@olane/o-config": "0.7.33",
58
+ "@olane/o-core": "0.7.33",
59
+ "@olane/o-lane": "0.7.33",
60
+ "@olane/o-protocol": "0.7.33",
61
+ "@olane/o-tool": "0.7.33",
62
62
  "debug": "^4.4.1",
63
63
  "dotenv": "^16.5.0"
64
64
  },
65
- "gitHead": "3aaf809d720ac59971d636d3dbdf6c4eadd83bca"
65
+ "gitHead": "a1a218ce3cb7ffca90b442b07baff4ef15844318"
66
66
  }