effect-durable-agent-celld 0.1.0-alpha.10

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Advait Shinde
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # effect-durable-agent-celld
2
+
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.
7
+
8
+ ```sh
9
+ pnpm add effect-durable-agent@alpha effect-durable-agent-celld@alpha
10
+ ```
11
+
12
+ ```ts
13
+ import { EDASessionCell } from "effect-durable-agent-celld";
14
+
15
+ export class AgentSession extends EDASessionCell<Env> {
16
+ constructor(ctx: DurableObjectState, env: Env) {
17
+ super(ctx, env, makeAgentOptions(env));
18
+ }
19
+ }
20
+ ```
21
+
22
+ celld implements the Cloudflare Workers and Durable Objects API. This package
23
+ therefore uses the same SQLite, alarm, RPC, and hibernatable-WebSocket adapter
24
+ as the Cloudflare host, while providing a celld-specific installation and
25
+ deployment boundary. Deploy the Worker with `celld deploy` and run it against
26
+ an S3-compatible or Google Cloud Storage bucket as described by celld.
27
+
28
+ The supported baseline is celld `v0.2.0`. EDA does not require unsupported
29
+ managed Cloudflare bindings; application tools may still be limited by celld's
30
+ current Workers compatibility surface.
31
+
32
+ The core, Cloudflare adapter dependency, and celld host are published in
33
+ lockstep and must use the same version.
@@ -0,0 +1,18 @@
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
+
3
+ //#region src/index.d.ts
4
+ /**
5
+ * One EDA session hosted as a celld cell.
6
+ *
7
+ * celld implements the Workers Durable Objects contract, so this class shares
8
+ * the production adapter with Cloudflare while keeping deployment choice at a
9
+ * package boundary.
10
+ */
11
+ declare abstract class EDASessionCell<EnvType extends object = object> extends EDASessionDurableObject<EnvType> {
12
+ protected constructor(ctx: DurableObjectState, env: EnvType, options: EDASessionDurableObjectOptions);
13
+ }
14
+ /** Resolve a celld session cell by its stable domain session id. */
15
+ declare const getEDASessionCellByName: <T extends EDASessionCell<object>>(namespace: DurableObjectNamespace<T>, sessionId: string) => DurableObjectStub<T>;
16
+ //#endregion
17
+ export { EDASessionCell, EDASessionCellController, type EDASessionCellOptions, type EDASessionCellStorage, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, getEDASessionCellByName, makeEDACelldOpenAiModelLayer };
18
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ import { EDASessionController as EDASessionCellController, EDASessionDurableObject, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, makeEDADurableObjectOpenAiModelLayer as makeEDACelldOpenAiModelLayer } from "effect-durable-agent-cloudflare";
2
+ //#region src/index.ts
3
+ /**
4
+ * One EDA session hosted as a celld cell.
5
+ *
6
+ * celld implements the Workers Durable Objects contract, so this class shares
7
+ * the production adapter with Cloudflare while keeping deployment choice at a
8
+ * package boundary.
9
+ */
10
+ var EDASessionCell = class extends EDASessionDurableObject {
11
+ constructor(ctx, env, options) {
12
+ super(ctx, env, options);
13
+ }
14
+ };
15
+ /** Resolve a celld session cell by its stable domain session id. */
16
+ const getEDASessionCellByName = (namespace, sessionId) => namespace.getByName(sessionId);
17
+ //#endregion
18
+ export { EDASessionCell, EDASessionCellController, edaRuntimeConfig, encodeEdaRpcCommand, encodeEdaRpcSubmittables, getEDASessionCellByName, makeEDACelldOpenAiModelLayer };
19
+
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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 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 ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "effect-durable-agent-celld",
3
+ "version": "0.1.0-alpha.10",
4
+ "description": "celld host for effect-durable-agent.",
5
+ "keywords": [
6
+ "agents",
7
+ "celld",
8
+ "durable-objects",
9
+ "effect",
10
+ "event-sourcing"
11
+ ],
12
+ "homepage": "https://github.com/advait/effect-durable-agent#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/advait/effect-durable-agent/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/advait/effect-durable-agent.git",
19
+ "directory": "packages/effect-durable-agent-celld"
20
+ },
21
+ "license": "MIT",
22
+ "author": "Advait Shinde",
23
+ "type": "module",
24
+ "sideEffects": false,
25
+ "main": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "files": [
28
+ "dist",
29
+ "README.md"
30
+ ],
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.js"
35
+ },
36
+ "./package.json": "./package.json"
37
+ },
38
+ "publishConfig": {
39
+ "access": "public",
40
+ "registry": "https://registry.npmjs.org/",
41
+ "tag": "alpha"
42
+ },
43
+ "dependencies": {
44
+ "effect-durable-agent-cloudflare": "0.1.0-alpha.10",
45
+ "effect-durable-agent": "0.1.0-alpha.10"
46
+ },
47
+ "peerDependencies": {
48
+ "@effect/ai-openai": "4.0.0-beta.102",
49
+ "effect": "4.0.0-beta.102"
50
+ },
51
+ "devDependencies": {
52
+ "@cloudflare/workers-types": "5.20260813.1",
53
+ "@effect/ai-openai": "4.0.0-beta.102",
54
+ "effect": "4.0.0-beta.102",
55
+ "vite-plus": "^0.1.21",
56
+ "vitest": "^4.1.8"
57
+ },
58
+ "scripts": {
59
+ "build": "vp pack",
60
+ "check": "pnpm run lint && pnpm run typecheck",
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",
65
+ "typecheck": "tsc -p tsconfig.json --noEmit"
66
+ }
67
+ }