@celljs/ai-pi 4.5.0 → 4.6.0
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.
- package/esm/node/test/test-container.js +1 -2
- package/esm/node/test/test-container.js.map +1 -1
- package/lib/node/test/test-container.d.ts.map +1 -1
- package/lib/node/test/test-container.js +0 -1
- package/lib/node/test/test-container.js.map +1 -1
- package/package.json +3 -3
- package/src/node/test/test-container.ts +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import aiCoreModule from '@celljs/ai-core/lib/common/module';
|
|
2
|
-
import { autoBind, Container,
|
|
2
|
+
import { autoBind, Container, currentThis } from '@celljs/core';
|
|
3
3
|
import { coreTestModule } from '@celljs/core/lib/common/test/test-module';
|
|
4
4
|
import { PiModelsContribution } from '../pi-protocol.js';
|
|
5
5
|
import { FauxPiModels } from './faux-pi-models.js';
|
|
@@ -13,7 +13,6 @@ export async function createPiTestContainer(options = {}, ...modules) {
|
|
|
13
13
|
// everything registered before it); core's test module then replaces their logger.
|
|
14
14
|
const container = new Container(aiCoreModule, coreTestModule, piModule, ...modules);
|
|
15
15
|
container.bind(PiModelsContribution).toConstantValue(faux);
|
|
16
|
-
ContainerProvider.set(container);
|
|
17
16
|
return { container, faux };
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=test-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-container.js","sourceRoot":"","sources":["../../../src/node/test/test-container.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAwB,
|
|
1
|
+
{"version":3,"file":"test-container.js","sourceRoot":"","sources":["../../../src/node/test/test-container.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAwB,WAAW,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAkB,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,UAAU,CAAC;AAElB,MAAM,QAAQ,GAAG,QAAQ,EAAE,CAAC;AAO5B,oFAAoF;AACpF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,OAAO,GAAc,EAAE,EAAE,GAAG,OAA0B;IAC9F,WAAW,CAAC,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC;IAChD,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,MAAM,EAAE,CAAC;IACzC,wGAAwG;IACxG,mFAAmF;IACnF,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,CAAC;IACpF,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC3D,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-container.d.ts","sourceRoot":"","sources":["../../../src/node/test/test-container.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,SAAS,EAAE,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"test-container.d.ts","sourceRoot":"","sources":["../../../src/node/test/test-container.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,SAAS,EAAE,KAAK,eAAe,EAAe,MAAM,cAAc,CAAC;AAEtF,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,UAAU,CAAC;AAIlB,MAAM,WAAW,eAAe;IAC5B,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,YAAY,CAAC;CACtB;AAED,oFAAoF;AACpF,wBAAsB,qBAAqB,CAAC,OAAO,GAAE,SAAc,EAAE,GAAG,OAAO,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAQ5H"}
|
|
@@ -19,7 +19,6 @@ async function createPiTestContainer(options = {}, ...modules) {
|
|
|
19
19
|
// everything registered before it); core's test module then replaces their logger.
|
|
20
20
|
const container = new core_1.Container(module_1.default, test_module_1.coreTestModule, piModule, ...modules);
|
|
21
21
|
container.bind(pi_protocol_1.PiModelsContribution).toConstantValue(faux);
|
|
22
|
-
core_1.ContainerProvider.set(container);
|
|
23
22
|
return { container, faux };
|
|
24
23
|
}
|
|
25
24
|
//# sourceMappingURL=test-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-container.js","sourceRoot":"","sources":["../../../src/node/test/test-container.ts"],"names":[],"mappings":";;;;;;AAAA,+EAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"test-container.js","sourceRoot":"","sources":["../../../src/node/test/test-container.ts"],"names":[],"mappings":";;;;;;AAAA,+EAA6D;AAC7D,uCAAsF;AACtF,0EAA0E;AAC1E,gDAAsE;AACtE,qDAAgD;AAChD,oBAAkB;AAElB,MAAM,QAAQ,GAAG,IAAA,eAAQ,GAAE,CAAC;AAO5B,oFAAoF;AAC7E,KAAK,gCAAgC,OAAO,GAAc,EAAE,EAAE,GAAG,OAA0B;IAC9F,kBAAW,CAAC,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC;IAChD,MAAM,IAAI,GAAG,MAAM,6BAAY,CAAC,MAAM,EAAE,CAAC;IACzC,wGAAwG;IACxG,mFAAmF;IACnF,MAAM,SAAS,GAAG,IAAI,gBAAS,CAAC,gBAAY,EAAE,4BAAc,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,CAAC;IACpF,SAAS,CAAC,IAAI,CAAC,kCAAoB,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC3D,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ai-pi",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "pi-ai models (20+ providers) as Cell chat models",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cell-component"
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@celljs/ai-core": "4.
|
|
37
|
-
"@celljs/core": "4.
|
|
36
|
+
"@celljs/ai-core": "4.6.0",
|
|
37
|
+
"@celljs/core": "4.6.0",
|
|
38
38
|
"@earendil-works/pi-ai": "^1.5.0",
|
|
39
39
|
"rxjs": "^6.6.0"
|
|
40
40
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import aiCoreModule from '@celljs/ai-core/lib/common/module';
|
|
2
|
-
import { autoBind, Container, type ContainerModule,
|
|
2
|
+
import { autoBind, Container, type ContainerModule, currentThis } from '@celljs/core';
|
|
3
3
|
import { coreTestModule } from '@celljs/core/lib/common/test/test-module';
|
|
4
4
|
import { PiModelsContribution, type PiOptions } from '../pi-protocol';
|
|
5
5
|
import { FauxPiModels } from './faux-pi-models';
|
|
@@ -20,6 +20,5 @@ export async function createPiTestContainer(options: PiOptions = {}, ...modules:
|
|
|
20
20
|
// everything registered before it); core's test module then replaces their logger.
|
|
21
21
|
const container = new Container(aiCoreModule, coreTestModule, piModule, ...modules);
|
|
22
22
|
container.bind(PiModelsContribution).toConstantValue(faux);
|
|
23
|
-
ContainerProvider.set(container);
|
|
24
23
|
return { container, faux };
|
|
25
24
|
}
|