@olane/o-lane 0.7.20 → 0.7.22

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-capability.config.d.ts","sourceRoot":"","sources":["../../../src/capabilities/o-capability.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,IAAI,KAAK,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,iBAAkB,YAAW,KAAK;IAC7C,IAAI,EAAG,SAAS,CAAC;IACjB,MAAM,EAAG,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;gBAEnB,MAAM,EAAE,KAAK;IAWzB,MAAM;;;;;IAQN,QAAQ;IAIR,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,iBAAiB;CAIhD"}
1
+ {"version":3,"file":"o-capability.config.d.ts","sourceRoot":"","sources":["../../../src/capabilities/o-capability.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,IAAI,KAAK,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,qBAAa,iBAAkB,YAAW,KAAK;IAC7C,IAAI,EAAG,SAAS,CAAC;IACjB,MAAM,EAAG,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;gBAEnB,MAAM,EAAE,KAAK;IAYzB,MAAM;;;;;IAQN,QAAQ;IAIR,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,iBAAiB;CAIhD"}
@@ -8,6 +8,7 @@ export class oCapabilityConfig {
8
8
  this.useStream = params.useStream;
9
9
  this.onChunk = params.onChunk;
10
10
  this.chatHistory = params.chatHistory;
11
+ this.params = params.params;
11
12
  }
12
13
  toJSON() {
13
14
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"o-capability.intelligence.d.ts","sourceRoot":"","sources":["../../../src/capabilities/o-capability.intelligence.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,8BAAsB,uBAAwB,SAAQ,WAAW;IAEzD,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,CAAC;CAqD3E"}
1
+ {"version":3,"file":"o-capability.intelligence.d.ts","sourceRoot":"","sources":["../../../src/capabilities/o-capability.intelligence.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,8BAAsB,uBAAwB,SAAQ,WAAW;IAEzD,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,6BAA6B,CAAC;CAsD3E"}
@@ -10,6 +10,7 @@ export class oCapabilityIntelligence extends oCapability {
10
10
  method: 'prompt',
11
11
  params: {
12
12
  prompt: prompt,
13
+ userMessage: `<intent>${this.config?.intent}</intent>`,
13
14
  intent: this.config?.intent,
14
15
  _isStreaming: _isStreaming,
15
16
  },
@@ -41,7 +41,6 @@ export class oCapabilityExecute extends oCapabilityIntelligence {
41
41
  if (!handshake.result) {
42
42
  throw new oError(oErrorCodes.INVALID_RESPONSE, 'Handshake failed');
43
43
  }
44
- // this.logger.debug('Handshake: ', handshake.result);
45
44
  const { tools, methods } = handshake.result;
46
45
  const prompt = await this.loadPrompt({ tools, methods });
47
46
  const aiResponse = await this.intelligence(prompt);
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ //
2
3
  console.log('hi');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-lane",
3
- "version": "0.7.20",
3
+ "version": "0.7.22",
4
4
  "type": "module",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  "devDependencies": {
37
37
  "@eslint/eslintrc": "^3.3.1",
38
38
  "@eslint/js": "^9.29.0",
39
- "@olane/o-test": "0.7.20",
39
+ "@olane/o-test": "0.7.22",
40
40
  "@tsconfig/node20": "^20.1.6",
41
41
  "@types/handlebars": "^4.1.0",
42
42
  "@types/jest": "^30.0.0",
@@ -57,15 +57,15 @@
57
57
  "typescript": "5.4.5"
58
58
  },
59
59
  "dependencies": {
60
- "@olane/o-config": "0.7.20",
61
- "@olane/o-core": "0.7.20",
62
- "@olane/o-node": "0.7.20",
63
- "@olane/o-protocol": "0.7.20",
64
- "@olane/o-storage": "0.7.20",
65
- "@olane/o-tool": "0.7.20",
60
+ "@olane/o-config": "0.7.22",
61
+ "@olane/o-core": "0.7.22",
62
+ "@olane/o-node": "0.7.22",
63
+ "@olane/o-protocol": "0.7.22",
64
+ "@olane/o-storage": "0.7.22",
65
+ "@olane/o-tool": "0.7.22",
66
66
  "debug": "^4.4.1",
67
67
  "dotenv": "^16.5.0",
68
68
  "handlebars": "^4.7.8"
69
69
  },
70
- "gitHead": "f95036155df07d605e8e3e1c315b9041a665f323"
70
+ "gitHead": "9cac875091760102dfa89f4a24767908fd5ed8a1"
71
71
  }