@olane/o-tool-registry 0.4.1 → 0.4.2

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":"intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/intelligence/intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,qBAAa,gBAAiB,SAAQ,YAAY;IAChD,OAAO,CAAC,eAAe,CAAK;gBAChB,MAAM,EAAE,WAAW;IAkDzB,kBAAkB,IAAI,OAAO,CAAC,UAAU,CAAC;IA2BzC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAwB1D,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAkB3D"}
1
+ {"version":3,"file":"intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/intelligence/intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,qBAAa,gBAAiB,SAAQ,YAAY;IAChD,OAAO,CAAC,eAAe,CAAK;gBAChB,MAAM,EAAE,WAAW;IAkDzB,kBAAkB,IAAI,OAAO,CAAC,UAAU,CAAC;IAmCzC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAwB1D,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAkB3D"}
@@ -47,6 +47,13 @@ export class IntelligenceTool extends oVirtualTool {
47
47
  }));
48
48
  }
49
49
  async requestMissingData() {
50
+ // check to see if the anthropic key is provided in the ENV vars
51
+ if (process.env.ANTHROPIC_API_KEY) {
52
+ return {
53
+ choice: 'o://anthropic',
54
+ apiKey: process.env.ANTHROPIC_API_KEY,
55
+ };
56
+ }
50
57
  // if the anthropic key is not in the vault, ask the human
51
58
  this.logger.info('Anthropic API key not found in vault, asking human');
52
59
  const humanResponse = await this.use(new oAddress('o://human'), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-tool-registry",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,11 +34,11 @@
34
34
  "devDependencies": {
35
35
  "@eslint/eslintrc": "^3.3.1",
36
36
  "@eslint/js": "^9.29.0",
37
- "@olane/o-config": "0.4.1",
38
- "@olane/o-core": "0.4.1",
39
- "@olane/o-protocol": "0.4.1",
40
- "@olane/o-tool": "0.4.1",
41
- "@olane/o-tools-common": "0.4.1",
37
+ "@olane/o-config": "0.4.2",
38
+ "@olane/o-core": "0.4.2",
39
+ "@olane/o-protocol": "0.4.2",
40
+ "@olane/o-tool": "0.4.2",
41
+ "@olane/o-tools-common": "0.4.2",
42
42
  "@tsconfig/node20": "^20.1.6",
43
43
  "@types/jest": "^30.0.0",
44
44
  "@typescript-eslint/eslint-plugin": "^8.34.1",
@@ -56,11 +56,11 @@
56
56
  "typescript": "5.4.5"
57
57
  },
58
58
  "peerDependencies": {
59
- "@olane/o-config": "^0.4.1",
60
- "@olane/o-core": "^0.4.1",
61
- "@olane/o-protocol": "^0.4.1",
62
- "@olane/o-tool": "^0.4.1",
63
- "@olane/o-tools-common": "^0.4.1"
59
+ "@olane/o-config": "^0.4.2",
60
+ "@olane/o-core": "^0.4.2",
61
+ "@olane/o-protocol": "^0.4.2",
62
+ "@olane/o-tool": "^0.4.2",
63
+ "@olane/o-tools-common": "^0.4.2"
64
64
  },
65
65
  "dependencies": {
66
66
  "@huggingface/transformers": "^3.5.2",