@celljs/ai-coding-agent 4.5.1 → 4.6.1
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/application-lifecycle.d.ts +2 -3
- package/esm/node/application-lifecycle.js.map +1 -1
- package/esm/node/test/test-container.js +1 -2
- package/esm/node/test/test-container.js.map +1 -1
- package/lib/node/application-lifecycle.d.ts +2 -3
- package/lib/node/application-lifecycle.d.ts.map +1 -1
- package/lib/node/application-lifecycle.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 +4 -4
- package/src/node/application-lifecycle.ts +2 -3
- package/src/node/test/test-container.ts +1 -2
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ApplicationLifecycle } from '@celljs/core';
|
|
2
|
-
import type { BackendApplication } from '@celljs/core/lib/node';
|
|
1
|
+
import { type Application, ApplicationLifecycle } from '@celljs/core';
|
|
3
2
|
import { AgentSessionManager } from './coding-agent-protocol.js';
|
|
4
|
-
export declare class CodingAgentApplicationLifecycle implements ApplicationLifecycle<
|
|
3
|
+
export declare class CodingAgentApplicationLifecycle implements ApplicationLifecycle<Application> {
|
|
5
4
|
protected readonly sessionManager: AgentSessionManager;
|
|
6
5
|
onStop(): void;
|
|
7
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-lifecycle.js","sourceRoot":"","sources":["../../src/node/application-lifecycle.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"application-lifecycle.js","sourceRoot":"","sources":["../../src/node/application-lifecycle.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAoB,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGvD,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAIxC,MAAM;QACF,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;IACrC,CAAC;CACJ,CAAA;AALsB;IADlB,SAAS,CAAC,mBAAmB,CAAC;;uEACwB;AAF9C,+BAA+B;IAD3C,SAAS,CAAC,oBAAoB,CAAC;GACnB,+BAA+B,CAO3C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mkdtempSync } from 'node:fs';
|
|
2
2
|
import { tmpdir } from 'node:os';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { autoBind, Container,
|
|
4
|
+
import { autoBind, Container, currentThis } from '@celljs/core';
|
|
5
5
|
import { coreTestModule } from '@celljs/core/lib/common/test/test-module';
|
|
6
6
|
import { ModelRuntimeContribution } from '../coding-agent-protocol.js';
|
|
7
7
|
import { FauxModels } from './faux-models.js';
|
|
@@ -19,7 +19,6 @@ export async function createTestContainer(options = {}, ...modules) {
|
|
|
19
19
|
const faux = await FauxModels.create();
|
|
20
20
|
const container = new Container(coreTestModule, codingAgentModule, ...modules);
|
|
21
21
|
container.bind(ModelRuntimeContribution).toConstantValue(faux);
|
|
22
|
-
ContainerProvider.set(container);
|
|
23
22
|
return { container, faux, dir };
|
|
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,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,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,EAAE,WAAW,EAAE,MAAM,SAAS,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type { BackendApplication } from '@celljs/core/lib/node';
|
|
1
|
+
import { type Application, ApplicationLifecycle } from '@celljs/core';
|
|
3
2
|
import { AgentSessionManager } from './coding-agent-protocol';
|
|
4
|
-
export declare class CodingAgentApplicationLifecycle implements ApplicationLifecycle<
|
|
3
|
+
export declare class CodingAgentApplicationLifecycle implements ApplicationLifecycle<Application> {
|
|
5
4
|
protected readonly sessionManager: AgentSessionManager;
|
|
6
5
|
onStop(): void;
|
|
7
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-lifecycle.d.ts","sourceRoot":"","sources":["../../src/node/application-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"application-lifecycle.d.ts","sourceRoot":"","sources":["../../src/node/application-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,oBAAoB,EAAwB,MAAM,cAAc,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,qBACa,+BAAgC,YAAW,oBAAoB,CAAC,WAAW,CAAC;IAErF,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,mBAAmB,CAAC;IAEvD,MAAM,IAAI,IAAI,CAEb;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-lifecycle.js","sourceRoot":"","sources":["../../src/node/application-lifecycle.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"application-lifecycle.js","sourceRoot":"","sources":["../../src/node/application-lifecycle.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAA4F;AAC5F,mEAA8D;AAGvD,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAIxC,MAAM;QACF,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;IACrC,CAAC;CACJ,CAAA;;AALsB;IADlB,IAAA,gBAAS,EAAC,2CAAmB,CAAC;;uEACwB;0CAF9C,+BAA+B;IAD3C,IAAA,gBAAS,EAAC,2BAAoB,CAAC;GACnB,+BAA+B,CAO3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-container.d.ts","sourceRoot":"","sources":["../../../src/node/test/test-container.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,SAAS,EAAE,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"test-container.d.ts","sourceRoot":"","sources":["../../../src/node/test/test-container.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,SAAS,EAAE,KAAK,eAAe,EAAe,MAAM,cAAc,CAAC;AAEtF,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,UAAU,CAAC;AAIlB,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,GAAE,kBAAuB,EAAE,GAAG,OAAO,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CASjI"}
|
|
@@ -22,7 +22,6 @@ async function createTestContainer(options = {}, ...modules) {
|
|
|
22
22
|
const faux = await faux_models_1.FauxModels.create();
|
|
23
23
|
const container = new core_1.Container(test_module_1.coreTestModule, codingAgentModule, ...modules);
|
|
24
24
|
container.bind(coding_agent_protocol_1.ModelRuntimeContribution).toConstantValue(faux);
|
|
25
|
-
core_1.ContainerProvider.set(container);
|
|
26
25
|
return { container, faux, dir };
|
|
27
26
|
}
|
|
28
27
|
//# 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,qCAAsC;AACtC,qCAAiC;AACjC,yCAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"test-container.js","sourceRoot":"","sources":["../../../src/node/test/test-container.ts"],"names":[],"mappings":";;;AAAA,qCAAsC;AACtC,qCAAiC;AACjC,yCAAiC;AACjC,uCAAsF;AACtF,0EAA0E;AAC1E,oEAA6F;AAC7F,+CAA2C;AAC3C,oBAAkB;AAElB,MAAM,iBAAiB,GAAG,IAAA,eAAQ,GAAE,CAAC;AASrC;;;GAGG;AACI,KAAK,8BAA8B,OAAO,GAAuB,EAAE,EAAE,GAAG,OAA0B;IACrG,MAAM,GAAG,GAAG,IAAA,qBAAW,EAAC,IAAA,gBAAI,EAAC,IAAA,gBAAM,GAAE,EAAE,oBAAoB,CAAC,CAAC,CAAC;IAC9D,kBAAW,CAAC,SAAS,GAAG;QACpB,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAA,gBAAI,EAAC,GAAG,EAAE,WAAW,CAAC,EAAE,KAAK,EAAE,wBAAU,CAAC,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,EAAE;KACrI,CAAC;IACF,MAAM,IAAI,GAAG,MAAM,wBAAU,CAAC,MAAM,EAAE,CAAC;IACvC,MAAM,SAAS,GAAG,IAAI,gBAAS,CAAC,4BAAc,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,CAAC;IAC/E,SAAS,CAAC,IAAI,CAAC,gDAAwB,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC/D,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;AACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ai-coding-agent",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"description": "Hosts pi coding agent sessions in Cell applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cell-component"
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@celljs/ai-agent": "4.
|
|
37
|
-
"@celljs/ai-pi": "4.
|
|
38
|
-
"@celljs/core": "4.
|
|
36
|
+
"@celljs/ai-agent": "4.6.1",
|
|
37
|
+
"@celljs/ai-pi": "4.6.1",
|
|
38
|
+
"@celljs/core": "4.6.1",
|
|
39
39
|
"@earendil-works/pi-ai": "^1.5.0",
|
|
40
40
|
"@earendil-works/pi-coding-agent": "^1.5.0"
|
|
41
41
|
},
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ApplicationLifecycle, Autowired, Component } from '@celljs/core';
|
|
2
|
-
import type { BackendApplication } from '@celljs/core/lib/node';
|
|
1
|
+
import { type Application, ApplicationLifecycle, Autowired, Component } from '@celljs/core';
|
|
3
2
|
import { AgentSessionManager } from './coding-agent-protocol';
|
|
4
3
|
|
|
5
4
|
@Component(ApplicationLifecycle)
|
|
6
|
-
export class CodingAgentApplicationLifecycle implements ApplicationLifecycle<
|
|
5
|
+
export class CodingAgentApplicationLifecycle implements ApplicationLifecycle<Application> {
|
|
7
6
|
@Autowired(AgentSessionManager)
|
|
8
7
|
protected readonly sessionManager: AgentSessionManager;
|
|
9
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mkdtempSync } from 'node:fs';
|
|
2
2
|
import { tmpdir } from 'node:os';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { autoBind, Container, type ContainerModule,
|
|
4
|
+
import { autoBind, Container, type ContainerModule, currentThis } from '@celljs/core';
|
|
5
5
|
import { coreTestModule } from '@celljs/core/lib/common/test/test-module';
|
|
6
6
|
import { type CodingAgentOptions, ModelRuntimeContribution } from '../coding-agent-protocol';
|
|
7
7
|
import { FauxModels } from './faux-models';
|
|
@@ -28,6 +28,5 @@ export async function createTestContainer(options: CodingAgentOptions = {}, ...m
|
|
|
28
28
|
const faux = await FauxModels.create();
|
|
29
29
|
const container = new Container(coreTestModule, codingAgentModule, ...modules);
|
|
30
30
|
container.bind(ModelRuntimeContribution).toConstantValue(faux);
|
|
31
|
-
ContainerProvider.set(container);
|
|
32
31
|
return { container, faux, dir };
|
|
33
32
|
}
|