effect-durable-agent-celld 0.1.0-alpha.4 → 0.1.0-alpha.6
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/README.md +4 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# effect-durable-agent-celld
|
|
2
2
|
|
|
3
|
-
[celld](https://celld.dev/) host for [`effect-durable-agent`](
|
|
3
|
+
[celld](https://celld.dev/) host for [`effect-durable-agent`](../effect-durable-agent/README.md).
|
|
4
|
+
|
|
5
|
+
Start with the deployable [`examples/004-celld-no-tools`](../../examples/004-celld-no-tools)
|
|
6
|
+
application.
|
|
4
7
|
|
|
5
8
|
```sh
|
|
6
9
|
pnpm add effect-durable-agent@alpha effect-durable-agent-celld@alpha
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EDASessionController as EDASessionCellController, EDASessionDurableObject, EDASessionDurableObjectOptions, EDASessionDurableObjectOptions as EDASessionCellOptions, EDASessionDurableObjectStorage as EDASessionCellStorage, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, makeEDADurableObjectOpenAiModelLayer as makeEDACelldOpenAiModelLayer } from "effect-durable-agent-cloudflare";
|
|
2
2
|
|
|
3
3
|
//#region src/index.d.ts
|
|
4
4
|
/**
|
|
@@ -14,5 +14,5 @@ declare abstract class EDASessionCell<EnvType extends object = object> extends E
|
|
|
14
14
|
/** Resolve a celld session cell by its stable domain session id. */
|
|
15
15
|
declare const getEDASessionCellByName: <T extends EDASessionCell<object>>(namespace: DurableObjectNamespace<T>, sessionId: string) => DurableObjectStub<T>;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { EDASessionCell,
|
|
17
|
+
export { EDASessionCell, EDASessionCellController, type EDASessionCellOptions, type EDASessionCellStorage, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, getEDASessionCellByName, makeEDACelldOpenAiModelLayer };
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EDASessionController as EDASessionCellController, EDASessionDurableObject, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, makeEDADurableObjectOpenAiModelLayer as makeEDACelldOpenAiModelLayer } from "effect-durable-agent-cloudflare";
|
|
2
2
|
//#region src/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* One EDA session hosted as a celld cell.
|
|
@@ -15,6 +15,6 @@ var EDASessionCell = class extends EDASessionDurableObject {
|
|
|
15
15
|
/** Resolve a celld session cell by its stable domain session id. */
|
|
16
16
|
const getEDASessionCellByName = (namespace, sessionId) => namespace.getByName(sessionId);
|
|
17
17
|
//#endregion
|
|
18
|
-
export { EDASessionCell,
|
|
18
|
+
export { EDASessionCell, EDASessionCellController, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, getEDASessionCellByName, makeEDACelldOpenAiModelLayer };
|
|
19
19
|
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n EDASessionDurableObject,\n type EDASessionDurableObjectOptions,\n} from \"effect-durable-agent-cloudflare\";\n\n/**\n * One EDA session hosted as a celld cell.\n *\n * celld implements the Workers Durable Objects contract, so this class shares\n * the production adapter with Cloudflare while keeping deployment choice at a\n * package boundary.\n */\nexport abstract class EDASessionCell<\n EnvType extends object = object,\n> extends EDASessionDurableObject<EnvType> {\n protected constructor(\n ctx: DurableObjectState,\n env: EnvType,\n options: EDASessionDurableObjectOptions,\n ) {\n super(ctx, env, options);\n }\n}\n\n/** Resolve a celld session cell by its stable domain session id. */\nexport const getEDASessionCellByName = <T extends EDASessionCell<object>>(\n namespace: DurableObjectNamespace<T>,\n sessionId: string,\n): DurableObjectStub<T> => namespace.getByName(sessionId);\n\nexport {\n edaRuntimeConfig,\n encodeEdaRpcCommand,\n encodeEdaRpcSubmittables,\n makeEDADurableObjectOpenAiModelLayer as makeEDACelldOpenAiModelLayer,\n
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n EDASessionDurableObject,\n type EDASessionDurableObjectOptions,\n} from \"effect-durable-agent-cloudflare\";\n\n/**\n * One EDA session hosted as a celld cell.\n *\n * celld implements the Workers Durable Objects contract, so this class shares\n * the production adapter with Cloudflare while keeping deployment choice at a\n * package boundary.\n */\nexport abstract class EDASessionCell<\n EnvType extends object = object,\n> extends EDASessionDurableObject<EnvType> {\n protected constructor(\n ctx: DurableObjectState,\n env: EnvType,\n options: EDASessionDurableObjectOptions,\n ) {\n super(ctx, env, options);\n }\n}\n\n/** Resolve a celld session cell by its stable domain session id. */\nexport const getEDASessionCellByName = <T extends EDASessionCell<object>>(\n namespace: DurableObjectNamespace<T>,\n sessionId: string,\n): DurableObjectStub<T> => namespace.getByName(sessionId);\n\nexport {\n edaRuntimeConfig,\n encodeEdaRpcCommand,\n encodeEdaRpcSubmittables,\n makeEDADurableObjectOpenAiModelLayer as makeEDACelldOpenAiModelLayer,\n EDASessionController as EDASessionCellController,\n type EDASessionDurableObjectOptions as EDASessionCellOptions,\n type EDASessionDurableObjectStorage as EDASessionCellStorage,\n} from \"effect-durable-agent-cloudflare\";\n"],"mappings":";;;;;;;;;AAYA,IAAsB,iBAAtB,cAEU,wBAAiC;CACzC,YACE,KACA,KACA,SACA;EACA,MAAM,KAAK,KAAK,OAAO;CACzB;AACF;;AAGA,MAAa,2BACX,WACA,cACyB,UAAU,UAAU,SAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "effect-durable-agent-celld",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
4
|
"description": "celld host for effect-durable-agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "git+https://github.com/advait/effect-durable-agent.git",
|
|
19
|
-
"directory": "packages/celld"
|
|
19
|
+
"directory": "packages/effect-durable-agent-celld"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"author": "Advait Shinde",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"tag": "alpha"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"effect-durable-agent": "0.1.0-alpha.
|
|
45
|
-
"effect-durable-agent-cloudflare": "0.1.0-alpha.
|
|
44
|
+
"effect-durable-agent": "0.1.0-alpha.6",
|
|
45
|
+
"effect-durable-agent-cloudflare": "0.1.0-alpha.6"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@effect/ai-openai": "4.0.0-beta.102",
|
|
@@ -58,9 +58,10 @@
|
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "vp pack",
|
|
60
60
|
"check": "pnpm run lint && pnpm run typecheck",
|
|
61
|
-
"lint": "vp fmt --check src package.json tsconfig.json vite.config.ts && vp lint --deny-warnings src vite.config.ts",
|
|
62
|
-
"lint:fix": "vp fmt src package.json tsconfig.json vite.config.ts && vp lint --fix src vite.config.ts",
|
|
63
|
-
"test": "vp test run --passWithNoTests",
|
|
61
|
+
"lint": "vp fmt --check src testing package.json tsconfig.json vite.config.ts && vp lint --deny-warnings src testing vite.config.ts",
|
|
62
|
+
"lint:fix": "vp fmt src testing package.json tsconfig.json vite.config.ts && vp lint --fix src testing vite.config.ts",
|
|
63
|
+
"test": "vp test run --passWithNoTests src",
|
|
64
|
+
"test:integration": "vp test run testing/integration/host-conformance.test.ts",
|
|
64
65
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
65
66
|
}
|
|
66
67
|
}
|